Skip to content

Commit 0c254cf

Browse files
committed
Add versionadded and fix description.
1 parent 2e0b172 commit 0c254cf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Doc/c-api/function.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,18 @@ There are a few functions specific to Python functions.
118118
119119
.. c:function:: PyObject* PyFunction_GetKwDefaults(PyObject *op)
120120
121-
Return the keyword-argument default values of the function object *op*. This can be a
122-
tuple of arguments or ``NULL``.
121+
Return the keyword-only argument default values of the function object *op*. This can be a
122+
dictionary of arguments or ``NULL``.
123+
124+
.. versionadded:: 3.0
123125
124126
125127
.. c:function:: PyObject *PyFunction_GET_KW_DEFAULTS(PyObject *op)
126128
127129
Equivalent to :c:func:`PyFunction_GetKwDefaults`, but without error checking.
128130
131+
.. versionadded:: 3.0
132+
129133
130134
.. c:function:: PyObject* PyFunction_GetClosure(PyObject *op)
131135

0 commit comments

Comments
 (0)