8000 Fix the documentation for PyCode_New add `qualname` parameter (#107186) · python/cpython@f2abeb5 · GitHub
[go: up one dir, main page]

Skip to content

Commit f2abeb5

Browse files
authored
Fix the documentation for PyCode_New add qualname parameter (#107186)
1 parent 89fd4f4 commit f2abeb5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/c-api/code.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ bound into a function.
3333
3434
Return the number of free variables in *co*.
3535
36-
.. c:function:: PyCodeObject* PyUnstable_Code_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 *linetable, PyObject *exceptiontable)
36+
.. c:function:: PyCodeObject* PyUnstable_Code_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, PyObject *qualname, int firstlineno, PyObject *linetable, PyObject *exceptiontable)
3737
3838
Return a new code object. If you need a dummy code object to create a frame,
3939
use :c:func:`PyCode_NewEmpty` instead.
@@ -46,7 +46,7 @@ bound into a function.
4646
execution or VM crashes. Use this function only with extreme care.
4747
4848
.. versionchanged:: 3.11
49-
Added ``exceptiontable`` parameter.
49+
Added ``qualname`` and ``exceptiontable`` parameters.
5050
5151
.. index:: single: PyCode_New
5252
@@ -56,7 +56,7 @@ bound into a function.
5656
The old name is deprecated, but will remain available until the
5757
signature changes again.
5858
59-
.. c:function:: PyCodeObject* PyUnstable_Code_NewWithPosOnlyArgs(int argcount, int posonlyargcount, 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 *linetable, PyObject *exceptiontable)
59+
.. c:function:: PyCodeObject* PyUnstable_Code_NewWithPosOnlyArgs(int argcount, int posonlyargcount, int kwonlyargcount, int nlocals, int stacksize, int flags, PyObject *code, PyObject *consts, PyObject *names, PyObject *varnames, PyObject *freevars, PyObject *cellvars, PyObject *filename, PyObject *name, PyObject *qualname, int firstlineno, PyObject *linetable, PyObject *exceptiontable)
6060
6161
Similar to :c:func:`PyUnstable_Code_New`, but with an extra "posonlyargcount" for positional-only arguments.
6262
The same caveats that apply to ``PyUnstable_Code_New`` also apply to this function.
@@ -66,7 +66,7 @@ bound into a function.
6666
.. versionadded:: 3.8 as ``PyCode_NewWithPosOnlyArgs``
6767
6868
.. versionchanged:: 3.11
69-
Added ``exceptiontable`` parameter.
69+
Added ``qualname`` and ``exceptiontable`` parameters.
7070
7171
.. versionchanged:: 3.12
7272

0 commit comments

Comments
 (0)
0