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.
PyFunction_SetKwDefaults
1 parent b5a0c72 commit 18529b5Copy full SHA for 18529b5
Doc/c-api/function.rst
@@ -102,6 +102,15 @@ There are a few functions specific to Python functions.
102
dictionary of arguments or ``NULL``.
103
104
105
+.. 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
116
Return the closure associated with the function object *op*. This can be ``NULL``
0 commit comments