Skip to content

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

Merged
merged 5 commits into from
May 21, 2025

Conversation

encukou
Copy link
Member

@encukou encukou commented Mar 19, 2025

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/

@encukou encukou added the needs backport to 3.14 bugs and security fixes label May 7, 2025
@terryjreedy
Copy link
Member

I like the re-arrangement and separation of identifier and keyword.

@encukou
Copy link
Member Author

encukou commented May 16, 2025

Thanks for the reviews!
I plan to merge on Wednesday if there are no objections.

@encukou encukou merged commit c7364f7 into python:main May 21, 2025
41 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs May 21, 2025
@miss-islington-app
Copy link

Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@encukou encukou deleted the lex-analysis-names branch May 21, 2025 14:01
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 21, 2025
…-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]>
@bedevere-app
Copy link

bedevere-app bot commented May 21, 2025

GH-134423 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label May 21, 2025
@miss-islington-app
Copy link

Sorry @encukou, I had trouble completing the backport.
Please retry by removing and re-adding the "needs backport to 3.14" label.
Please backport backport using cherry_picker on the command line.

cherry_picker c7364f79b2fb01c251e22115875a46a2ec134dcd 3.14

hugovk pushed a commit that referenced this pull request May 26, 2025
…) (#134423)

Co-authored-by: Petr Viktorin <[email protected]>
Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: Blaise Pabon <[email protected]>
lkollar pushed a commit to lkollar/cpython that referenced this pull request May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants