Skip to content

Conversation

@wookie184
Copy link
Contributor

@wookie184 wookie184 commented Sep 4, 2022

Closes #96497

Previously, the non-mangled name was being looked up for assignment expressions in comprehensions, which caused some bugs. See issue for more information.

@wookie184
Copy link
Contributor Author

wookie184 commented Sep 4, 2022

I'm not sure what the failure for the Tests / Address sanitizer check indicates, any ideas?

EDIT: Seems rerunning the checks fixed it. Thanks.

@wookie184
Copy link
Contributor Author

Hi, would anyone be able to give this PR a review?

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) February 17, 2024 11:53
@serhiy-storchaka serhiy-storchaka added needs backport to 3.11 only security fixes needs backport to 3.12 only security fixes labels Feb 17, 2024
@serhiy-storchaka serhiy-storchaka merged commit 664965a into python:main Feb 17, 2024
@miss-islington-app
Copy link

Thanks @wookie184 for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 17, 2024
…d_namedexpr_scope' (pythonGH-96561)

(cherry picked from commit 664965a)

Co-authored-by: wookie184 <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Feb 17, 2024

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

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Feb 17, 2024
@miss-islington-app
Copy link

Sorry, @wookie184 and @serhiy-storchaka, I could not cleanly backport this to 3.11 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 664965a1c141e8af5eb465d29099781a6a2fc3f3 3.11

serhiy-storchaka pushed a commit that referenced this pull request Feb 17, 2024
…nd_namedexpr_scope' (GH-96561) (GH-115603)

(cherry picked from commit 664965a)

Co-authored-by: wookie184 <[email protected]>
serhiy-storchaka pushed a commit to serhiy-storchaka/cpython that referenced this pull request Feb 17, 2024
…e_extend_namedexpr_scope' (pythonGH-96561)

(cherry picked from commit 664965a)

Co-authored-by: wookie184 <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Feb 17, 2024

GH-115604 is a backport of this pull request to the 3.11 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.11 only security fixes label Feb 17, 2024
serhiy-storchaka added a commit that referenced this pull request Feb 17, 2024
…nd_namedexpr_scope' (GH-96561) (GH-115604)

(cherry picked from commit 664965a)

Co-authored-by: wookie184 <[email protected]>
woodruffw pushed a commit to woodruffw-forks/cpython that referenced this pull request Mar 4, 2024
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
LukasWoodtli pushed a commit to LukasWoodtli/cpython that referenced this pull request Jan 22, 2025
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.

SyntaxError for walrus target in a comprehension when the target is a global variable with a private name.

3 participants