[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 80a4e38994)
This commit is contained in:
Jelle Zijlstra 2024-05-31 21:56:38 -07:00 committed by GitHub
parent 2f7fada580
commit 6d9677d78e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 363 additions and 329 deletions

File diff suppressed because it is too large Load diff