Beispiel #1
0
// InPlaceXor returns the bitwise xor of n and obj.  This is done in place if
// supported by n.  The equivalent Python is "n ^= obj".
//
// Return value: New Reference.
func (n *NumberProtocol) InPlaceXor(obj *Base) (*Base, error) {
	ret := C.PyNumber_InPlaceXor(cnp(n), obj.c())
	return obj2ObjErr(ret)
}
Beispiel #2
0
// InPlaceXor returns the bitwise xor of n and obj.  This is done in place if
// supported by n.  The equivalent Python is "n ^= obj".
//
// Return value: New Reference.
func (n *NumberProtocol) InPlaceXor(obj Object) (Object, error) {
	ret := C.PyNumber_InPlaceXor(cnp(n), c(obj))
	return obj2ObjErr(ret)
}