// Xor returns the bitwise xor of n and obj. The equivalent Python is "n ^ // obj". // // Return value: New Reference. func (n *NumberProtocol) Xor(obj *Base) (*Base, error) { ret := C.PyNumber_Xor(cnp(n), obj.c()) return obj2ObjErr(ret) }
// Xor returns the bitwise xor of n and obj. The equivalent Python is "n ^ // obj". // // Return value: New Reference. func (n *NumberProtocol) Xor(obj Object) (Object, error) { ret := C.PyNumber_Xor(cnp(n), c(obj)) return obj2ObjErr(ret) }