// Add returns the result of adding n and obj. The equivalent Python is "n + // obj". // // Return value: New Reference. func (n *NumberProtocol) Add(obj *Base) (*Base, error) { ret := C.PyNumber_Add(cnp(n), obj.c()) return obj2ObjErr(ret) }
// Add returns the result of adding n and obj. The equivalent Python is "n + // obj". // // Return value: New Reference. func (n *NumberProtocol) Add(obj Object) (Object, error) { ret := C.PyNumber_Add(cnp(n), c(obj)) return obj2ObjErr(ret) }