Skip to content

gh-135447: Document new bytecodes in 3.14 #135803

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions Doc/library/dis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,12 @@ operations on it as if it was a Python list. The top of the stack corresponds to
generate line tracing events.


.. opcode:: NOT_TAKEN
Do nothing code. Used as a hint to the interpreter that a branch was predicted
as not taken.
.. versionadded:: 3.14


.. opcode:: POP_TOP

Removes the top-of-stack item::
Expand Down Expand Up @@ -1163,6 +1169,26 @@ iterations of the loop.
.. versionadded:: 3.6


.. opcode:: BUILD_INTERPOLATION

Constructs an Interpolation object from the following components, and pushes
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

waiting for the doc of string.templatelib

:class:`string.templatelib.Interpolation`

it onto the stack:

* ``value``: the evaluated result at runtime
* ``name``: the expression's source code as a string
* ``format``: the format specification

.. versionadded:: 3.14


.. opcode:: BUILD_TEMPLATE

Create a Template object consuming interpolations and a string from the stack,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

waiting for the doc of string.templatelib

:class:`string.templatelib.Template`

and pushes it onto the stack.

.. versionadded:: 3.14


.. opcode:: LIST_EXTEND (i)

Implements::
Expand Down
Loading