[Python-3000-checkins] r64934 - python/branches/py3k/Doc/c-api/function.rst

alexandre.vassalotti python-3000-checkins at python.org
Mon Jul 14 00:26:51 CEST 2008


Author: alexandre.vassalotti
Date: Mon Jul 14 00:26:50 2008
New Revision: 64934

Log:
Added documentation for PyFunction_GetAnnotations() and
PyFunction_SetAnnotations().


Modified:
   python/branches/py3k/Doc/c-api/function.rst

Modified: python/branches/py3k/Doc/c-api/function.rst
==============================================================================
--- python/branches/py3k/Doc/c-api/function.rst	(original)
+++ python/branches/py3k/Doc/c-api/function.rst	Mon Jul 14 00:26:50 2008
@@ -81,3 +81,15 @@
    *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*.


More information about the Python-3000-checkins mailing list