Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.14] gh-135676: Simplify docs on lexing names (GH-140464)#142015

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
StanFromIreland wants to merge1 commit intopython:3.14
base:3.14
Choose a base branch
Loading
fromStanFromIreland:backport-2ff8608-3.14

Conversation

@StanFromIreland
Copy link
Member

@StanFromIrelandStanFromIreland commentedNov 27, 2025
edited by github-actionsbot
Loading

This simplifies the Lexical Analysis section on Names (but keeps it technically correct) by putting all the info about non-ASCII characters in a separate (and very technical) section.

It uses a mental model where the parser doesn't handle Unicode complexity “immediately”, but:

  • parses any non-ASCII character (outside strings/comments) as part of a name, since these can't (yet) be e.g. operators
  • normalizes the name
  • validates the name, using the xid_start/xid_continue sets

(cherry picked from commit2ff8608)


📚 Documentation preview 📚:https://cpython-previews--142015.org.readthedocs.build/

This simplifies the Lexical Analysis section on Names (but keeps it technically correct) by putting all the info about non-ASCII characters in a separate (and very technical) section.It uses a mental model where the parser doesn't handle Unicode complexity “immediately”, but:- parses any non-ASCII character (outside strings/comments) as part of a name, since these can't (yet) be e.g. operators- normalizes the name- validates the name, using the xid_start/xid_continue sets(cherry picked from commit2ff8608)Co-authored-by: Petr Viktorin <encukou@gmail.com>Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>Co-authored-by: Blaise Pabon <blaise@gmail.com>Co-authored-by: Micha Albert <info@micha.zone>Co-authored-by: KeithTheEE <kmurrayis@gmail.com>
Comment on lines +593 to +594
.. _PropList.txt:https://www.unicode.org/Public/16.0.0/ucd/PropList.txt
.. _DerivedCoreProperties.txt:https://www.unicode.org/Public/16.0.0/ucd/DerivedCoreProperties.txt
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

(un-)updated these to UCD 16.0.0.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@willingcwillingcAwaiting requested review from willingcwillingc is a code owner

@AA-TurnerAA-TurnerAwaiting requested review from AA-TurnerAA-Turner is a code owner

Assignees

@encukouencukou

Labels

awaiting reviewdocsDocumentation in the Doc dirskip news

Projects

Status: Todo

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@StanFromIreland@encukou

[8]ページ先頭

©2009-2025 Movatter.jp