Skip to content

Fix crash when reveal_locals() encounters a class definition #5920

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

Merged
merged 3 commits into from
Nov 20, 2018

Conversation

gvanrossum
Copy link
Member

Fixes #5915.

The root cause were some improper casts when creating the local_nodes list. These were easy to fix by adding isinstance(node, Var) checks to the list comprehensions.

@gvanrossum
Copy link
Member Author

Since this was a super simple fix I'll just merge it now.

@gvanrossum gvanrossum merged commit 3c311c2 into python:master Nov 20, 2018
@gvanrossum gvanrossum deleted the fix-reveal_locals-crash branch November 20, 2018 01:15
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.

Internal error when using reveal_locals() inside class that contains an inner class
1 participant