]> granicus.if.org Git - python/commitdiff
Mention the behaviour of PyFunction_SetAnnotations() on error.
authorAlexandre Vassalotti <alexandre@peadrop.com>
Sun, 13 Jul 2008 22:28:42 +0000 (22:28 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Sun, 13 Jul 2008 22:28:42 +0000 (22:28 +0000)
Doc/c-api/function.rst

index ada974c7656b234871e71e9db39c0bb21ad0bf61..3512fe2206ad1a7425058c8010e5af610c59231e 100644 (file)
@@ -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.