Skip to content

Commit bdbc304

Browse files
committed
This is a setter, not a getter.
I'm sleepy.
1 parent e4698e1 commit bdbc304

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Doc/c-api/function.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,14 @@ There are a few functions specific to Python functions.
102102
dictionary of arguments or ``NULL``.
103103
104104
105-
.. c:function:: PyObject* PyFunction_SetKwDefaults(PyObject *op, PyObject *defaults)
105+
.. c:function:: int PyFunction_SetKwDefaults(PyObject *op, PyObject *defaults)
106106
107107
Set the keyword-only argument default values of the function object *op*.
108108
*defaults* must be a dictionary of keyword-only arguments or ``Py_None``.
109109
110+
This function returns ``0`` on success, and returns ``-1`` with an exception
111+
set on failure.
112+
110113
111114
.. c:function:: PyObject* PyFunction_GetClosure(PyObject *op)
112115

0 commit comments

Comments
 (0)