summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/code.rst
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-26 23:41:15 (GMT)
committerGitHub <noreply@github.com>2023-07-26 23:41:15 (GMT)
commit391e03fa05b80d17a14ac88d30c974fa2fa00adb (patch)
treeed5ff8d9e0ac450363daf39fa48c62ef78f5d871 /Doc/c-api/code.rst
parent507d8bc39a79e965fa32aa08caa568f3399e1472 (diff)
downloadcpython-391e03fa05b80d17a14ac88d30c974fa2fa00adb.zip
cpython-391e03fa05b80d17a14ac88d30c974fa2fa00adb.tar.gz
cpython-391e03fa05b80d17a14ac88d30c974fa2fa00adb.tar.bz2
gh-107298: Fix Sphinx warnings in the C API doc (#107302)
* Update Doc/tools/.nitignore * Fix BufferedIOBase.write() link in buffer.rst
Diffstat (limited to 'Doc/c-api/code.rst')
-rw-r--r--Doc/c-api/code.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/c-api/code.rst b/Doc/c-api/code.rst
index a99de99..89fe42d 100644
--- a/Doc/c-api/code.rst
+++ b/Doc/c-api/code.rst
@@ -39,7 +39,7 @@ bound into a function.
use :c:func:`PyCode_NewEmpty` instead.
Since the definition of the bytecode changes often, calling
- :c:func:`PyCode_New` directly can bind you to a precise Python version.
+ :c:func:`PyUnstable_Code_New` directly can bind you to a precise Python version.
The many arguments of this function are inter-dependent in complex
ways, meaning that subtle changes to values are likely to result in incorrect
@@ -58,8 +58,8 @@ bound into a function.
.. 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)
- Similar to :c:func:`PyCode_New`, but with an extra "posonlyargcount" for positional-only arguments.
- The same caveats that apply to ``PyCode_New`` also apply to this function.
+ Similar to :c:func:`PyUnstable_Code_New`, but with an extra "posonlyargcount" for positional-only arguments.
+ The same caveats that apply to ``PyUnstable_Code_New`` also apply to this function.
.. index:: single: PyCode_NewWithPosOnlyArgs