// InPlacePower returns the result of the Python "pow(n, obj1, obj2)". This is // done in place if supported by n. If obj2 is None, then the Python "n **= // obj" is also equivalent, if obj2 is not None, there is no equivalent in // Python. // // Return value: New Reference. func (n *NumberProtocol) InPlacePower(obj1, obj2 *Base) (*Base, error) { ret := C.PyNumber_InPlacePower(cnp(n), obj1.c(), obj2.c()) return obj2ObjErr(ret) }
// InPlacePower returns the result of the Python "pow(n, obj1, obj2)". This is // done in place if supported by n. If obj2 is None, then the Python "n **= // obj" is also equivalent, if obj2 is not None, there is no equivalent in // Python. // // Return value: New Reference. func (n *NumberProtocol) InPlacePower(obj1, obj2 Object) (Object, error) { ret := C.PyNumber_InPlacePower(cnp(n), c(obj1), c(obj2)) return obj2ObjErr(ret) }