// InPlaceAnd returns the bitwise and 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) InPlaceAnd(obj *Base) (*Base, error) { ret := C.PyNumber_InPlaceAnd(cnp(n), obj.c()) return obj2ObjErr(ret) }
// InPlaceAnd returns the bitwise and 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) InPlaceAnd(obj Object) (Object, error) { ret := C.PyNumber_InPlaceAnd(cnp(n), c(obj)) return obj2ObjErr(ret) }