]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-119821: Support non-dict globals in LOAD_FROM_DICT_OR_GLOBALS (#119822)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Fri, 31 May 2024 21:05:24 +0000 (14:05 -0700)
committerGitHub <noreply@github.com>
Fri, 31 May 2024 21:05:24 +0000 (14:05 -0700)
commit80a4e3899420faaa012c82b4e82cdb6675a6a944
treea9bde6c673e54d2c5f55397f89e2f2a0d323fcea
parent2237946af0981c46dc7d3886477e425ccfb37f28
gh-119821: Support non-dict globals in LOAD_FROM_DICT_OR_GLOBALS (#119822)

Support 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.
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