]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-112354: `END_FOR` instruction to only pop one value. (GH-114247)
authorMark Shannon <mark@hotpy.org>
Wed, 24 Jan 2024 15:10:17 +0000 (15:10 +0000)
committerGitHub <noreply@github.com>
Wed, 24 Jan 2024 15:10:17 +0000 (15:10 +0000)
commit981d172f7f0613d30bef4a8934b361db7fcf0672
treebda610af879108b30ba43e39579900e35689543c
parent6fadd68da5dd928847264b17f62a5b8b369c1c1e
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.
16 files changed:
Doc/library/dis.rst
Include/internal/pycore_global_objects_fini_generated.h
Include/internal/pycore_global_strings.h
Include/internal/pycore_opcode_metadata.h
Include/internal/pycore_runtime_init_generated.h
Include/internal/pycore_unicodeobject_generated.h
Lib/importlib/_bootstrap_external.py
Lib/test/test_compiler_codegen.py
Lib/test/test_dis.py
Misc/NEWS.d/next/Core and Builtins/2024-01-17-05-09-32.gh-issue-112354.Run9ko.rst [new file with mode: 0644]
Programs/test_frozenmain.h
Python/bytecodes.c
Python/compile.c
Python/generated_cases.c.h
Python/optimizer.c
Tools/build/generate_global_objects.py