commit | 3065b87a075656d52bb018821c7ba30cea26ec7a | [log] [tgz] |
---|---|---|
author | Alexandre Vassalotti <alexandre@peadrop.com> | Sun Jul 13 22:28:42 2008 +0000 |
committer | Alexandre Vassalotti <alexandre@peadrop.com> | Sun Jul 13 22:28:42 2008 +0000 |
tree | 44d177cc22228d4f94cfc7ad31b61d914679f8d1 | |
parent | b0c81654f75564a5b4558af702758e6904232941 [diff] |
Mention the behaviour of PyFunction_SetAnnotations() on error.
diff --git a/Doc/c-api/function.rst b/Doc/c-api/function.rst index ada974c..3512fe2 100644 --- a/Doc/c-api/function.rst +++ b/Doc/c-api/function.rst
@@ -93,3 +93,5 @@ Set the annotations for the function object *op*. *annotations* must be a dictionary or *Py_None*. + + Raises :exc:`SystemError` and returns ``-1`` on failure.