There are a few functions specific to Python functions.
types.FunctionType.
  
| PyObject *o) | 
| PyObject *code, PyObject *globals) | 
The function's docstring, name and __module__ are retrieved from the code object, the argument defaults and closure are set to NULL.
| PyObject *op) | 
| PyObject *op) | 
| PyObject *op) | 
| PyObject *op) | 
| PyObject *op, PyObject *defaults) | 
Raises SystemError and returns -1 on failure.
| PyObject *op) | 
| PyObject *op, PyObject *closure) | 
Raises SystemError and returns -1 on failure.
See About this document... for information on suggesting changes.