projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
343bca6
)
Added documentation for PyFunction_GetAnnotations() and
author
Alexandre Vassalotti
<alexandre@peadrop.com>
Sun, 13 Jul 2008 22:26:50 +0000
(22:26 +0000)
committer
Alexandre Vassalotti
<alexandre@peadrop.com>
Sun, 13 Jul 2008 22:26:50 +0000
(22:26 +0000)
PyFunction_SetAnnotations().
Doc/c-api/function.rst
patch
|
blob
|
history
diff --git
a/Doc/c-api/function.rst
b/Doc/c-api/function.rst
index e9ed2abdaa74f3aa8f7e64d4b6cbafadf1aa010c..ada974c7656b234871e71e9db39c0bb21ad0bf61 100644
(file)
--- a/
Doc/c-api/function.rst
+++ b/
Doc/c-api/function.rst
@@
-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*.