Skip to content

Commit e4698e1

Browse files
committed
Document PyFunction_SetKwDefaults().
1 parent 1d738de commit e4698e1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/c-api/function.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ 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)
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+
105111
.. c:function:: PyObject* PyFunction_GetClosure(PyObject *op)
106112
107113
Return the closure associated with the function object *op*. This can be ``NULL``

0 commit comments

Comments
 (0)