Skip to content

Conversation

@msullivan
Copy link
Collaborator

Currently the mro is left None to cause accesses to it before it is
properly initialized to blow up more quickly. This sort of behavior
doesn't play well with mypyc, and leaving it actually uninitialized
causes a lot of blowups.

Just always initialize mro to an empty list.

Currently the mro is left `None` to cause accesses to it before it is
properly initialized to blow up more quickly. This sort of behavior
doesn't play well with mypyc, and leaving it actually uninitialized
causes a lot of blowups.

Just always initialize mro to an empty list.
Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

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

I am fine with this. Could you please double check this with our internal code bases before merging?

@msullivan
Copy link
Collaborator Author

Looks good.

@msullivan msullivan merged commit 7416549 into master Aug 14, 2018
@msullivan msullivan deleted the populate-mro branch August 14, 2018 20:12
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.

3 participants