-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-127833: lexical analysis: Improve section on Names #131474
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
Co-authored-by: Stan Ulbrych <[email protected]>
I like the re-arrangement and separation of identifier and keyword. |
Thanks for the reviews! |
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
…-131474) (cherry picked from commit c7364f7) Co-authored-by: Petr Viktorin <[email protected]> Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Blaise Pabon <[email protected]>
GH-134423 is a backport of this pull request to the 3.14 branch. |
Sorry @encukou, I had trouble completing the backport.
|
…) (#134423) Co-authored-by: Petr Viktorin <[email protected]> Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Blaise Pabon <[email protected]>
…-131474) Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Blaise Pabon <[email protected]>
Use consistent terminology: "names" are "identifiers", "keywords", and "soft keywords".
Start with the simple case (ASCII), then get more and more technical.
Define NAME in the formal lexical grammar.
Exclude keywords in the
identifier
definition.📚 Documentation preview 📚: https://cpython-previews--131474.org.readthedocs.build/