Beispiel #1
0
// Multiply returns the result of multiplying n by obj.  The equivalent Python
// is "n * obj".
//
// Return value: New Reference.
func (n *NumberProtocol) Multiply(obj *Base) (*Base, error) {
	ret := C.PyNumber_Multiply(cnp(n), obj.c())
	return obj2ObjErr(ret)
}
Beispiel #2
0
// Multiply returns the result of multiplying n by obj.  The equivalent Python
// is "n * obj".
//
// Return value: New Reference.
func (n *NumberProtocol) Multiply(obj Object) (Object, error) {
	ret := C.PyNumber_Multiply(cnp(n), c(obj))
	return obj2ObjErr(ret)
}