-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
bpo-31394: Clarify documentation about token type attribute #3469
Conversation
Make it clear that Ellipsis tokens also have type attribute set to token.OP. See https://bugs.python.org/issue31394 for discussion
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. Thanks again to your contribution and we look forward to looking at it! |
Doc/library/tokenize.rst
Outdated
@@ -17,7 +17,7 @@ as well, making it useful for implementing "pretty-printers," including | |||
colorizers for on-screen displays. | |||
|
|||
To simplify token stream handling, all :ref:`operators` and :ref:`delimiters` | |||
tokens are returned using the generic :data:`~token.OP` token type. The exact | |||
tokens and Ellipsis are returned using the generic :data:`~token.OP` token type. The exact |
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.
Ellipsis -> :data:`Ellipsis`
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.
Still needed
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.
I don't understand, what is still needed.
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.
Replace Ellipsis with :data:`Ellipsis`.
Doc/library/tokenize.rst
Outdated
@@ -17,7 +17,7 @@ as well, making it useful for implementing "pretty-printers," including | |||
colorizers for on-screen displays. | |||
|
|||
To simplify token stream handling, all :ref:`operators` and :ref:`delimiters` |
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.
Could you also address @terryjreedy's comment on the tracker and change
:ref:`operators` and :ref:`delimiters`
to
:ref:`operator <operators>` and :ref:`delimiter <delimiters>`
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.
Fixed
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
I didn't expect the Spanish Inquisition! |
Nobody expects the Spanish Inquisition! @berkerpeksag: please review the changes made to this pull request. |
Thanks @terryjreedy and @berkerpeksag for the review. I checked that the changes have been made. |
Thanks @aivarannamaa for the PR, and @Mariatta for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6. |
Sorry, @aivarannamaa and @Mariatta, I could not cleanly backport this to |
Thanks @aivarannamaa and congrats on your first contribution to CPython 🌮 |
…thonGH-3469) Make it clear that Ellipsis tokens also have type attribute set to token.OP.. (cherry picked from commit 5f8fbf9)
GH-3525 is a backport of this pull request to the 3.6 branch. |
Make it clear that Ellipsis tokens are among these tokens, which have
type
attribute set totoken.OP
.See https://bugs.python.org/issue31394 for the discussion.
https://bugs.python.org/issue31394