]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-119821: Support non-dict globals in LOAD_FROM_DICT_OR_GLOBALS (#119822...
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Sat, 1 Jun 2024 04:56:26 +0000 (21:56 -0700)
committerGitHub <noreply@github.com>
Sat, 1 Jun 2024 04:56:26 +0000 (21:56 -0700)
commita0559849ac2de604ffa410268be262a8482ad23c
tree15a9f8e6e74955545903761ea8275a084e437ba4
parent0a266f7e74ce1ff4ad6e88f05473cc6a22ab7e20
[3.13] gh-119821: Support non-dict globals in LOAD_FROM_DICT_OR_GLOBALS (#119822) (#119889)

dSupport non-dict globals in LOAD_FROM_DICT_OR_GLOBALS

The implementation basically copies LOAD_GLOBAL. Possibly it could be deduplicated,
but that seems like it may get hairy since the two operations have different operands.

This is important to fix in 3.14 for PEP 649, but it's a bug in earlier versions too,
and we should backport to 3.13 and 3.12 if possible.

(cherry picked from commit 80a4e3899420faaa012c82b4e82cdb6675a6a944)
Include/internal/pycore_opcode_metadata.h
Include/internal/pycore_uop_metadata.h
Lib/test/test_type_aliases.py
Misc/NEWS.d/next/Core and Builtins/2024-05-30-23-01-00.gh-issue-119821.jPGfvt.rst [new file with mode: 0644]
Python/bytecodes.c
Python/executor_cases.c.h
Python/generated_cases.c.h
Python/optimizer_cases.c.h