示例#1
0
文件: number.go 项目: MogeiWang/py
// InPlaceDivide returns the result of dividing 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) InPlaceDivide(obj *Base) (*Base, error) {
	ret := C.PyNumber_InPlaceDivide(cnp(n), obj.c())
	return obj2ObjErr(ret)
}
示例#2
0
// InPlaceDivide returns the result of dividing 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) InPlaceDivide(obj Object) (Object, error) {
	ret := C.PyNumber_InPlaceDivide(cnp(n), c(obj))
	return obj2ObjErr(ret)
}