There are a few functions specific to Python functions.
types.FunctionType
.
The function's docstring, name and __module__ are retrieved from the code object, the argument defaults and closure are set to NULL.
Raises SystemError and returns -1
on failure.
Raises SystemError and returns -1
on failure.