mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
GH-112354: END_FOR
instruction to only pop one value. (GH-114247)
* Compiler emits END_FOR; POP_TOP instead of END_FOR. To support tier 2 side exits in loops.
This commit is contained in:
parent
6fadd68da5
commit
981d172f7f
16 changed files with 238 additions and 184 deletions
|
@ -546,8 +546,8 @@ operations on it as if it was a Python list. The top of the stack corresponds to
|
|||
|
||||
.. opcode:: END_FOR
|
||||
|
||||
Removes the top two values from the stack.
|
||||
Equivalent to ``POP_TOP``; ``POP_TOP``.
|
||||
Removes the top-of-stack item.
|
||||
Equivalent to ``POP_TOP``.
|
||||
Used to clean up at the end of loops, hence the name.
|
||||
|
||||
.. versionadded:: 3.12
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue