From 3065b87a075656d52bb018821c7ba30cea26ec7a Mon Sep 17 00:00:00 2001 From: Alexandre Vassalotti Date: Sun, 13 Jul 2008 22:28:42 +0000 Subject: [PATCH] Mention the behaviour of PyFunction_SetAnnotations() on error. --- Doc/c-api/function.rst | 2 ++ 1 file changed, 2 insertions(+) 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.