Exemple #1
0
// InPlaceRemainder returns the remainder of n divided by obj.  This is done in
// place if supported by n.  The equivalent Python is "n %= obj".
//
// Return value: New Reference.
func (n *NumberProtocol) InPlaceRemainder(obj *Base) (*Base, error) {
	ret := C.PyNumber_InPlaceRemainder(cnp(n), obj.c())
	return obj2ObjErr(ret)
}
Exemple #2
0
// InPlaceRemainder returns the remainder of n divided by obj.  This is done in
// place if supported by n.  The equivalent Python is "n %= obj".
//
// Return value: New Reference.
func (n *NumberProtocol) InPlaceRemainder(obj Object) (Object, error) {
	ret := C.PyNumber_InPlaceRemainder(cnp(n), c(obj))
	return obj2ObjErr(ret)
}