Пример #1
0
// Power returns the result of the Python "pow(n, obj1, obj2)".
//
// Return value: New Reference.
func (n *NumberProtocol) Power(obj1, obj2 *Base) (*Base, error) {
	ret := C.PyNumber_Power(cnp(n), obj1.c(), obj2.c())
	return obj2ObjErr(ret)
}
Пример #2
0
// Power returns the result of the Python "pow(n, obj1, obj2)".
//
// Return value: New Reference.
func (n *NumberProtocol) Power(obj1, obj2 Object) (Object, error) {
	ret := C.PyNumber_Power(cnp(n), c(obj1), c(obj2))
	return obj2ObjErr(ret)
}