Skip to content

Cleaner (?) fix for crash in #2302 #2333

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 1 commit into from
Oct 26, 2016
Merged

Cleaner (?) fix for crash in #2302 #2333

merged 1 commit into from
Oct 26, 2016

Conversation

gvanrossum
Copy link
Member

@gvanrossum
Copy link
Member Author

Would be nice to have a repro. I'm not sure if I have the patience for that though. I'm kind of waiting for this yak to be shaved.

@gvanrossum gvanrossum merged commit fc94151 into master Oct 26, 2016
@gvanrossum gvanrossum deleted the ivan-crash branch October 26, 2016 01:47
@ilevkivskyi
Copy link
Member

@gvanrossum
I found a very simple repro for this bug:

type[int]

This fails with same traceback as your original one and complains: 'Overloaded' object has no attribute 'variables'

Your fix indeed fixes this. Probably, it would be even better to add also a test for Overloaded (there is special method to deal with generic overloads in checkexpr that applies types or reports an error).

See PR #2335 for a test and extended fix.

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