Function
Function
-
PyTypeObject
PyFunction_Type PyTypeObjectPython Pythontypes.FunctionType
-
int
PyFunction_Check(PyObject *o) o (
PyFunction_Type) true NULL
-
PyObject*
PyFunction_New(PyObject *code, PyObject *globals) - Return value: New reference.
code globals
__module__ globals NULL __qualname__
-
PyObject*
PyFunction_NewWithQualName(PyObject *code, PyObject *globals, PyObject *qualname) - Return value: New reference.
PyFunction_New()__qualname__qualname NULL ; NULL__qualname____name__3.3 .
-
int
PyFunction_SetDefaults(PyObject *op, PyObject *defaults) op defaults Py_None
SystemError-1
-
int
PyFunction_SetClosure(PyObject *op, PyObject *closure) op closure Py_None cell
SystemError-1
-
int
PyFunction_SetAnnotations(PyObject *op, PyObject *annotations) op annotations Py_None
SystemError-1