Ejemplo n.º 1
0
// InPlaceMultiply returns the result of multiplying n by obj.  This is done in
// place if supported by n.  The equivalent Python is "n *= obj".
//
// Return value: New Reference.
func (n *NumberProtocol) InPlaceMultiply(obj *Base) (*Base, error) {
	ret := C.PyNumber_InPlaceMultiply(cnp(n), obj.c())
	return obj2ObjErr(ret)
}
Ejemplo n.º 2
0
// InPlaceMultiply returns the result of multiplying n by obj.  This is done in
// place if supported by n.  The equivalent Python is "n *= obj".
//
// Return value: New Reference.
func (n *NumberProtocol) InPlaceMultiply(obj Object) (Object, error) {
	ret := C.PyNumber_InPlaceMultiply(cnp(n), c(obj))
	return obj2ObjErr(ret)
}