-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-121272: move __future__ import validation from compiler to symtable #121273
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, this could be a good performance improvement when using a ton of c extensions with python scripts that use import from statements on them.
This shouldn't impact performance. This is about simplifying code in compile.c (in this case, making |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. This is thoroughly tested in test_future_stmt/test_future.py
and I confirmed that the code in future.c that sets ff_location
makes sense.
Uh oh!
There was an error while loading. Please reload this page.