Skip to content
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

Bug: ASCII range mentioned as U+0001..U+007F, rather than U+0000..U+007F #2674

Open
ezequiel-garzon opened this issue Dec 7, 2024 · 0 comments
Labels
bug This is a bug!

Comments

@ezequiel-garzon
Copy link

Describe the bug

Section 2.3. Identifiers and keywords of the python.org language reference indicates:

Within the ASCII range (U+0001..U+007F), the valid characters for identifiers include the uppercase and lowercase letters A through Z, the underscore _ and, except for the first character, the digits 0 through 9.

But the ASCII range is U+0000..U+007F, not U+0001..U+007F. The documentation points to PEP 3131, where the same range is used.

ASCII-range

To Reproduce

Visit the referenced webpage.

Expected behavior

Unicode's first block, with "Range: 0000..007F" (second line of U0000), is known as Basic Latin or C0 Controls and Basic Latin. The official charts index page refers to it as Basic Latin (ASCII), emphasizing the historical connection with the older standard.

Therefore, if it is deemed necessary to clarify the ASCII range at all, it should be U+0000..U+007F, not U+0001..U+007F.

URL to the issue

https://docs.python.org/3/reference/lexical_analysis.html#identifiers

Screenshots

No response

Browsers

Chrome

Operating System

macOS

Browser Version

No response

Relevant log output

No response

Additional context

No response

@ezequiel-garzon ezequiel-garzon added the bug This is a bug! label Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This is a bug!
Projects
None yet
Development

No branches or pull requests

1 participant