@@ -69,13 +69,14 @@ bound into a function.
6969 The old name is deprecated, but will remain available until the
7070 signature changes again.
7171
72+ .. c :function :: PyCodeObject* PyCode_NewWithPosOnlyArgs (...)
73+ :no-typesetting:
74+
7275.. 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)
7376
7477 Similar to :c:func: `PyUnstable_Code_New `, but with an extra "posonlyargcount" for positional-only arguments.
7578 The same caveats that apply to ``PyUnstable_Code_New `` also apply to this function.
7679
77- .. index :: single: PyCode_NewWithPosOnlyArgs (C function)
78-
7980 .. versionadded :: 3.8 as ``PyCode_NewWithPosOnlyArgs``
8081
8182 .. versionchanged :: 3.11
@@ -298,6 +299,9 @@ These functions are part of the unstable C API tier:
298299this functionality is a CPython implementation detail, and the API
299300may change without deprecation warnings.
300301
302+ .. c:function:: Py_ssize_t _PyEval_RequestCodeExtraIndex(freefunc free)
303+ :no-typesetting:
304+
301305.. c:function:: Py_ssize_t PyUnstable_Eval_RequestCodeExtraIndex(freefunc free)
302306
303307 Return a new opaque index value used to adding data to code objects.
@@ -310,8 +314,6 @@ may change without deprecation warnings.
310314 *free* will be called on non-``NULL`` data stored under the new index.
311315 Use :c:func:`Py_DecRef` when storing :c:type:`PyObject`.
312316
313- .. index:: single: _PyEval_RequestCodeExtraIndex (C function)
314-
315317 .. versionadded:: 3.6 as ``_PyEval_RequestCodeExtraIndex``
316318
317319 .. versionchanged:: 3.12
@@ -320,6 +322,9 @@ may change without deprecation warnings.
320322 The old private name is deprecated, but will be available until the API
321323 changes.
322324
325+ .. c:function:: int _PyCode_GetExtra(PyObject *code, Py_ssize_t index, void **extra)
326+ :no-typesetting:
327+
323328.. c :function :: int PyUnstable_Code_GetExtra (PyObject *code, Py_ssize_t index, void **extra)
324329
325330 Set *extra * to the extra data stored under the given index.
@@ -328,8 +333,6 @@ may change without deprecation warnings.
328333 If no data was set under the index, set *extra * to ``NULL `` and return
329334 0 without setting an exception.
330335
331- .. index :: single: _PyCode_GetExtra (C function)
332-
333336 .. versionadded :: 3.6 as ``_PyCode_GetExtra``
334337
335338 .. versionchanged :: 3.12
@@ -338,13 +341,14 @@ may change without deprecation warnings.
338341 The old private name is deprecated, but will be available until the API
339342 changes.
340343
344+ .. c :function :: int _PyCode_SetExtra (PyObject *code, Py_ssize_t index, void *extra)
345+ :no-typesetting:
346+
341347.. c :function :: int PyUnstable_Code_SetExtra (PyObject *code, Py_ssize_t index, void *extra)
342348
343349 Set the extra data stored under the given index to *extra *.
344350 Return 0 on success. Set an exception and return -1 on failure.
345351
346- .. index :: single: _PyCode_SetExtra (C function)
347-
348352 .. versionadded :: 3.6 as ``_PyCode_SetExtra``
349353
350354 .. versionchanged :: 3.12
0 commit comments