Skip to content

Conversation

@cthulahoops
Copy link
Collaborator

This is a basic implementation that I think should be good enough for __super__ to work.

This should be passed through to the metaclass to allow some more advanced trickery, but I think this is good enough. There's a more optimal implementation than a whole dictionary just for this, which we can sort when we come to optimise local variables.

Copy link
Contributor

@windelbouwman windelbouwman left a comment

Choose a reason for hiding this comment

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

I do not understand the cell idea, but the change looks okay.

@windelbouwman windelbouwman merged commit 4c48520 into master Mar 20, 2019
@cthulahoops
Copy link
Collaborator Author

A cellvar is the just cpython name/implementation for variables that captured from non-local, non-global scopes/the optimisation that makes them fast. I may be vague on the details too!

@cthulahoops cthulahoops deleted the add_class_cell branch April 9, 2019 19:52
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