We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4698e1 commit bdbc304Copy full SHA for bdbc304
Doc/c-api/function.rst
@@ -102,11 +102,14 @@ There are a few functions specific to Python functions.
102
dictionary of arguments or ``NULL``.
103
104
105
-.. c:function:: PyObject* PyFunction_SetKwDefaults(PyObject *op, PyObject *defaults)
+.. c:function:: int PyFunction_SetKwDefaults(PyObject *op, PyObject *defaults)
106
107
Set the keyword-only argument default values of the function object *op*.
108
*defaults* must be a dictionary of keyword-only arguments or ``Py_None``.
109
110
+ This function returns ``0`` on success, and returns ``-1`` with an exception
111
+ set on failure.
112
+
113
114
.. c:function:: PyObject* PyFunction_GetClosure(PyObject *op)
115
0 commit comments