// InPlaceSubtract returns the result of subtracting obj from n. This is done // in place if supported by n. The equivalent Python is "n -= obj". // // Return value: New Reference. func (n *NumberProtocol) InPlaceSubtract(obj *Base) (*Base, error) { ret := C.PyNumber_InPlaceSubtract(cnp(n), obj.c()) return obj2ObjErr(ret) }
// InPlaceSubtract returns the result of subtracting obj from n. This is done // in place if supported by n. The equivalent Python is "n -= obj". // // Return value: New Reference. func (n *NumberProtocol) InPlaceSubtract(obj Object) (Object, error) { ret := C.PyNumber_InPlaceSubtract(cnp(n), c(obj)) return obj2ObjErr(ret) }