Skip to content

Commit a3443d9

Browse files
committed
Issue python#12949: Document the kwonlyargcount argument for the PyCode_New C API function.
1 parent da8e11a commit a3443d9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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
@@ -418,6 +418,9 @@ Extension Modules
418418
Documentation
419419
-------------
420420

421+
- Issue #12949: Document the kwonlyargcount argument for the PyCode_New
422+
C API function.
423+
421424
- Issue #2134: The tokenize documentation has been clarified to explain why
422425
all operator and delimiter tokens are treated as token.OP tokens.
423426

0 commit comments

Comments
 (0)