]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] 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:38 +0000 (21:56 -0700)
committerGitHub <noreply@github.com>
Sat, 1 Jun 2024 04:56:38 +0000 (21:56 -0700)
commit6d9677d78e18012b4e53a92d43fabf0372d08c33
treea891b8917a5ae4be75deeaa4bce69079bf016a4f
parent2f7fada58091c518fd6784e108cce83bf6c310ac
[3.12] gh-119821: Support non-dict globals in LOAD_FROM_DICT_OR_GLOBALS (#119822) (#119890)

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)
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/generated_cases.c.h