diff options
author | 2008-07-13 22:28:42 +0000 | |
---|---|---|
committer | 2008-07-13 22:28:42 +0000 | |
commit | 3065b87a075656d52bb018821c7ba30cea26ec7a (patch) | |
tree | 44d177cc22228d4f94cfc7ad31b61d914679f8d1 /Doc/c-api/function.rst | |
parent | Added documentation for PyFunction_GetAnnotations() and (diff) | |
download | cpython-3065b87a075656d52bb018821c7ba30cea26ec7a.tar.gz cpython-3065b87a075656d52bb018821c7ba30cea26ec7a.tar.bz2 cpython-3065b87a075656d52bb018821c7ba30cea26ec7a.zip |
Mention the behaviour of PyFunction_SetAnnotations() on error.
Diffstat (limited to 'Doc/c-api/function.rst')
-rw-r--r-- | Doc/c-api/function.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/c-api/function.rst b/Doc/c-api/function.rst index ada974c7656..3512fe2206a 100644 --- a/Doc/c-api/function.rst +++ b/Doc/c-api/function.rst @@ -93,3 +93,5 @@ There are a few functions specific to Python functions. Set the annotations for the function object *op*. *annotations* must be a dictionary or *Py_None*. + + Raises :exc:`SystemError` and returns ``-1`` on failure. |