Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-119821: Support non-dict globals in LOAD_FROM_DICT_OR_GLOBALS #119822

Merged
merged 1 commit into from
May 31, 2024

Conversation

JelleZijlstra
Copy link
Member

@JelleZijlstra JelleZijlstra commented May 31, 2024

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.

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.
@JelleZijlstra JelleZijlstra added needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes labels May 31, 2024
@JelleZijlstra JelleZijlstra requested a review from carljm May 31, 2024 06:04
@JelleZijlstra JelleZijlstra changed the title Support non-dict globals in LOAD_FROM_DICT_OR_GLOBALS gh-119821: Support non-dict globals in LOAD_FROM_DICT_OR_GLOBALS May 31, 2024
@JelleZijlstra JelleZijlstra marked this pull request as ready for review May 31, 2024 13:49
@JelleZijlstra JelleZijlstra merged commit 80a4e38 into python:main May 31, 2024
61 checks passed
@miss-islington-app
Copy link

Thanks @JelleZijlstra for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry, @JelleZijlstra, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 80a4e3899420faaa012c82b4e82cdb6675a6a944 3.13

@miss-islington-app
Copy link

Sorry, @JelleZijlstra, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 80a4e3899420faaa012c82b4e82cdb6675a6a944 3.12

JelleZijlstra added a commit to JelleZijlstra/cpython that referenced this pull request Jun 1, 2024
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)
@bedevere-app
Copy link

bedevere-app bot commented Jun 1, 2024

GH-119889 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jun 1, 2024
JelleZijlstra added a commit to JelleZijlstra/cpython that referenced this pull request Jun 1, 2024
…_GLOBALS (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)
@bedevere-app
Copy link

bedevere-app bot commented Jun 1, 2024

GH-119890 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Jun 1, 2024
JelleZijlstra added a commit that referenced this pull request Jun 1, 2024
…LS (#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 80a4e38)
JelleZijlstra added a commit that referenced this pull request Jun 1, 2024
…LS (#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 80a4e38)
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
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.
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
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.
@JelleZijlstra JelleZijlstra restored the lfcg 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.

2 participants