Пример #1
0
// Or returns the bitwise or of n and obj.  The equivalent Python is "n | obj".
//
// Return value: New Reference.
func (n *NumberProtocol) Or(obj *Base) (*Base, error) {
	ret := C.PyNumber_Or(cnp(n), obj.c())
	return obj2ObjErr(ret)
}
Пример #2
0
// Or returns the bitwise or of n and obj.  The equivalent Python is "n | obj".
//
// Return value: New Reference.
func (n *NumberProtocol) Or(obj Object) (Object, error) {
	ret := C.PyNumber_Or(cnp(n), c(obj))
	return obj2ObjErr(ret)
}