コード例 #1
0
ファイル: number.go プロジェクト: MogeiWang/py
// 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
ファイル: number.go プロジェクト: ericsnowcurrently/qur-gopy
// 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)
}