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

Properly push scope when checking lambda expressions #8080

Merged
merged 2 commits into from Dec 5, 2019

Conversation

ilevkivskyi
Copy link
Member

Fixes #8079

Previously function scope was pushed inconsistently in two branches of visit_lambda_expr() (it was only pushed in the second branch by check_func_item()). I believe there is still a small inconsistency, although I wasn't able to trigger a corresponding crash, I added a TODO about this.

@ilevkivskyi ilevkivskyi requested a review from JukkaL Dec 4, 2019
JukkaL
JukkaL approved these changes Dec 5, 2019
Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix!

@JukkaL JukkaL merged commit 130663b into python:master Dec 5, 2019
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.

Regression: lambda within class body causes a crash
2 participants