Esempio n. 1
0
// Lshift returns the result of left shifting n by obj.  The equivalent Python
// is "n << obj".
//
// Return value: New Reference.
func (n *NumberProtocol) Lshift(obj *Base) (*Base, error) {
	ret := C.PyNumber_Lshift(cnp(n), obj.c())
	return obj2ObjErr(ret)
}
Esempio n. 2
0
// Lshift returns the result of left shifting n by obj.  The equivalent Python
// is "n << obj".
//
// Return value: New Reference.
func (n *NumberProtocol) Lshift(obj Object) (Object, error) {
	ret := C.PyNumber_Lshift(cnp(n), c(obj))
	return obj2ObjErr(ret)
}