예제 #1
0
파일: number.go 프로젝트: MogeiWang/py
// InPlaceOr returns the bitwise or of n and obj.  This is done in place if
// supported by n.  The equivalent Python is "n |= obj".
//
// Return value: New Reference.
func (n *NumberProtocol) InPlaceOr(obj *Base) (*Base, error) {
	ret := C.PyNumber_InPlaceOr(cnp(n), obj.c())
	return obj2ObjErr(ret)
}
예제 #2
0
// InPlaceOr returns the bitwise or of n and obj.  This is done in place if
// supported by n.  The equivalent Python is "n |= obj".
//
// Return value: New Reference.
func (n *NumberProtocol) InPlaceOr(obj Object) (Object, error) {
	ret := C.PyNumber_InPlaceOr(cnp(n), c(obj))
	return obj2ObjErr(ret)
}