// Rshift returns the result of right shifting n by obj. The equivalent Python // is "n << obj". // // Return value: New Reference. func (n *NumberProtocol) Rshift(obj *Base) (*Base, error) { ret := C.PyNumber_Rshift(cnp(n), obj.c()) return obj2ObjErr(ret) }
// Rshift returns the result of right shifting n by obj. The equivalent Python // is "n << obj". // // Return value: New Reference. func (n *NumberProtocol) Rshift(obj Object) (Object, error) { ret := C.PyNumber_Rshift(cnp(n), c(obj)) return obj2ObjErr(ret) }