Ejemplo n.º 1
0
// And returns the bitwise and of n and obj.  The equivalent Python is "n &
// obj".
//
// Return value: New Reference.
func (n *NumberProtocol) And(obj *Base) (*Base, error) {
	ret := C.PyNumber_And(cnp(n), obj.c())
	return obj2ObjErr(ret)
}
Ejemplo n.º 2
0
// And returns the bitwise and of n and obj.  The equivalent Python is "n &
// obj".
//
// Return value: New Reference.
func (n *NumberProtocol) And(obj Object) (Object, error) {
	ret := C.PyNumber_And(cnp(n), c(obj))
	return obj2ObjErr(ret)
}