示例#1
0
// PyObject* PyFunction_GetCode(PyObject *op)
// Return value: Borrowed reference.
// Return the code object associated with the function object op.
func PyFunction_GetCode(op *PyObject) *PyObject {
	return togo(C.PyFunction_GetCode(topy(op)))
}
示例#2
0
// Code returns the code object associated with the function "fn".
//
// Return value: Borrowed Reference.
func (fn *Function) Code() (Object, error) {
	ret := C.PyFunction_GetCode(c(fn))
	return obj2ObjErr(ret)
}