Commit b0c81654 authored by Alexandre Vassalotti's avatar Alexandre Vassalotti

Added documentation for PyFunction_GetAnnotations() and

PyFunction_SetAnnotations().
parent 343bca61
......@@ -81,3 +81,15 @@ There are a few functions specific to Python functions.
*Py_None* or a tuple of cell objects.
Raises :exc:`SystemError` and returns ``-1`` on failure.
.. cfunction:: PyObject *PyFunction_GetAnnotations(PyObject *op)
Return the annotations of the function object *op*. This can be a
mutable dictionary or *NULL*.
.. cfunction:: int PyFunction_SetAnnotations(PyObject *op, PyObject *annotations)
Set the annotations for the function object *op*. *annotations*
must be a dictionary or *Py_None*.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment