diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-02-11 10:34:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-11 10:34:41 (GMT) |
commit | b9f560258c6d13166da662d85422562f986f7af2 (patch) | |
tree | 31bb0b2f89595615676a08604ae42d0454fb7fdf /Doc/c-api/code.rst | |
parent | c4fa79b924a14bc08a8e4a28e76b7ff29663b75f (diff) | |
download | cpython-b9f560258c6d13166da662d85422562f986f7af2.zip cpython-b9f560258c6d13166da662d85422562f986f7af2.tar.gz cpython-b9f560258c6d13166da662d85422562f986f7af2.tar.bz2 |
[3.12] gh-115172: Fix explicit index extries for the C API (GH-115173) (GH-115292)
(cherry picked from commit 573acb30f22a84c0f2c951efa002c9946e29b6a3)
Diffstat (limited to 'Doc/c-api/code.rst')
-rw-r--r-- | Doc/c-api/code.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/c-api/code.rst b/Doc/c-api/code.rst index 11c12e6..382cfbf 100644 --- a/Doc/c-api/code.rst +++ b/Doc/c-api/code.rst @@ -49,7 +49,7 @@ bound into a function. .. versionchanged:: 3.11 Added ``qualname`` and ``exceptiontable`` parameters. - .. index:: single: PyCode_New + .. index:: single: PyCode_New (C function) .. versionchanged:: 3.12 @@ -62,7 +62,7 @@ bound into a 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 + .. index:: single: PyCode_NewWithPosOnlyArgs (C function) .. versionadded:: 3.8 as ``PyCode_NewWithPosOnlyArgs`` @@ -221,7 +221,7 @@ may change without deprecation warnings. *free* will be called on non-``NULL`` data stored under the new index. Use :c:func:`Py_DecRef` when storing :c:type:`PyObject`. - .. index:: single: _PyEval_RequestCodeExtraIndex + .. index:: single: _PyEval_RequestCodeExtraIndex (C function) .. versionadded:: 3.6 as ``_PyEval_RequestCodeExtraIndex`` @@ -239,7 +239,7 @@ may change without deprecation warnings. If no data was set under the index, set *extra* to ``NULL`` and return 0 without setting an exception. - .. index:: single: _PyCode_GetExtra + .. index:: single: _PyCode_GetExtra (C function) .. versionadded:: 3.6 as ``_PyCode_GetExtra`` @@ -254,7 +254,7 @@ may change without deprecation warnings. Set the extra data stored under the given index to *extra*. Return 0 on success. Set an exception and return -1 on failure. - .. index:: single: _PyCode_SetExtra + .. index:: single: _PyCode_SetExtra (C function) .. versionadded:: 3.6 as ``_PyCode_SetExtra`` |