// 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))) }
// 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) }