Skip to content

Conversation

JelleZijlstra
Copy link
Member

@JelleZijlstra JelleZijlstra commented Jun 1, 2024

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.

(cherry picked from commit 80a4e38)

python#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.

(cherry picked from commit 80a4e38)
@JelleZijlstra JelleZijlstra self-assigned this Jun 1, 2024
@JelleZijlstra JelleZijlstra changed the title gh-119821: Support non-dict globals in LOAD_FROM_DICT_OR_GLOBALS (#119822) [3.13] gh-119821: Support non-dict globals in LOAD_FROM_DICT_OR_GLOBALS (#119822) Jun 1, 2024
@JelleZijlstra JelleZijlstra merged commit a055984 into python:3.13 Jun 1, 2024
@JelleZijlstra JelleZijlstra deleted the backport-80a4e38-3.13 branch June 1, 2024 04:56
@JelleZijlstra JelleZijlstra restored the backport-80a4e38-3.13 branch September 10, 2024 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant