Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make it clear that nᵘₘᵇₑʳ normalizes to number
  • Loading branch information
encukou committed Oct 29, 2025
commit fce5e98384e660ad78659d00660fc2d4e96ce50a
3 changes: 2 additions & 1 deletion Doc/reference/lexical_analysis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,8 @@ as detailed in this section.

All names are converted into the `normalization form`_ NFKC while parsing.
This means that, for example, some typographic variants of characters are
converted to their "basic" form, for example::
converted to their "basic" form. For example, ``nᵘₘᵇₑʳ`` normalizes to
``number``, so Python treats them as the same name::

>>> nᵘₘᵇₑʳ = 3
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It would be helpful to add an explicit comment that the normalized form of nᵘₘᵇₑʳis number.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Does this look good?

>>> number
Expand Down
Loading