Skip to content

Commit d7862e9

Browse files
pythongh-141004: Document PyCode_Optimize (pythonGH-141378)
1 parent f72768f commit d7862e9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Doc/c-api/code.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,17 @@ bound into a function.
211211
.. versionadded:: 3.12
212212
213213
214+
.. c:function:: PyObject *PyCode_Optimize(PyObject *code, PyObject *consts, PyObject *names, PyObject *lnotab_obj)
215+
216+
This is a :term:`soft deprecated` function that does nothing.
217+
218+
Prior to Python 3.10, this function would perform basic optimizations to a
219+
code object.
220+
221+
.. versionchanged:: 3.10
222+
This function now does nothing.
223+
224+
214225
.. _c_codeobject_flags:
215226
216227
Code Object Flags

0 commit comments

Comments
 (0)