Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2396c0a

Browse files
committed
Issue #12949: Document the kwonlyargcount argument for the PyCode_New C API function.
2 parents 2dd254d + a3443d9 commit 2396c0a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Doc/c-api/code.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ bound into a function.
3535
3636
Return the number of free variables in *co*.
3737
38-
.. c:function:: PyCodeObject *PyCode_New(int argcount, int nlocals, int stacksize, int flags, PyObject *code, PyObject *consts, PyObject *names, PyObject *varnames, PyObject *freevars, PyObject *cellvars, PyObject *filename, PyObject *name, int firstlineno, PyObject *lnotab)
38+
.. c:function:: PyCodeObject *PyCode_New(int argcount, int kwonlyargcount, int nlocals, int stacksize, int flags, PyObject *code, PyObject *consts, PyObject *names, PyObject *varnames, PyObject *freevars, PyObject *cellvars, PyObject *filename, PyObject *name, int firstlineno, PyObject *lnotab)
3939
4040
Return a new code object. If you need a dummy code object to
4141
create a frame, use :c:func:`PyCode_NewEmpty` instead. Calling

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,6 +2100,9 @@ C-API
21002100
Documentation
21012101
-------------
21022102

2103+
- Issue #12949: Document the kwonlyargcount argument for the PyCode_New
2104+
C API function.
2105+
21032106
- Issue #13513: Fix io.IOBase documentation to correctly link to the
21042107
io.IOBase.readline method instead of the readline module.
21052108

0 commit comments

Comments
 (0)