Skip to content

Add __class__ cell to method scopes. #703

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
Mar 20, 2019
Merged

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.

2 participants