// InPlaceAdd returns the result of adding 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) InPlaceAdd(obj *Base) (*Base, error) { ret := C.PyNumber_InPlaceAdd(cnp(n), obj.c()) return obj2ObjErr(ret) }
// InPlaceAdd returns the result of adding 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) InPlaceAdd(obj Object) (Object, error) { ret := C.PyNumber_InPlaceAdd(cnp(n), c(obj)) return obj2ObjErr(ret) }