-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
gh-135676: Reword the Operators & Delimiters section(s) #137713
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Blaise Pabon <[email protected]> Co-authored-by: Adam Turner <[email protected]>
Doc/reference/lexical_analysis.rst
Outdated
The following printing ASCII characters have special meaning as part of other | ||
tokens or are otherwise significant to the lexical analyzer: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The characters in this section ('
, "
, #
, \
) have all been previously covered, does it make sense to keep the section?
So, I looked at this and #99000 again, and found a better (IMO) way to present the information. What do you think? What this PR is missing now is information from some existing notes:
I'll try adding a section for that next week. |
Lexically, there is no difference between operators and delimiters, so I combined the section.
This section also serves as a kind of guide for what all the ASCII "symbol" characters do, with notes like “The period can also occur in floating-point and imaginary literals” and “The following printing ASCII characters are not used in Python”.
I've expanded the notes to include
@
,{
, etc., but (for now) stopped short of adding a table of ASCII characters with links to where they appear.The tables of symbols are reorganized slightly.
.
was added to operators (like@
, it can be either operator or delimiter).->
was moved from augmented assignment to delimiters.📚 Documentation preview 📚: https://cpython-previews--137713.org.readthedocs.build/