From: Alexandre Vassalotti Date: Sun, 13 Jul 2008 22:28:42 +0000 (+0000) Subject: Mention the behaviour of PyFunction_SetAnnotations() on error. X-Git-Tag: v3.0b2~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3065b87a075656d52bb018821c7ba30cea26ec7a;p=python Mention the behaviour of PyFunction_SetAnnotations() on error. --- diff --git a/Doc/c-api/function.rst b/Doc/c-api/function.rst index ada974c765..3512fe2206 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.