// PyObject* PyFunction_GetModule(PyObject *op) // Return value: Borrowed reference. // Return the __module__ attribute of the function object op. This is normally a string containing the module name, but can be set to any other object by Python code. func PyFunction_GetModule(op *PyObject) *PyObject { return togo(C.PyFunction_GetModule(topy(op))) }
// Module returns the __module__ attribute of the function "fn". // // Return value: Borrowed Reference. func (fn *Function) Module() (Object, error) { ret := C.PyFunction_GetModule(c(fn)) return obj2ObjErr(ret) }