-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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-33852: Remove misplaced parentheses around 'list'. #7672
Conversation
I think the idea of having "list" inside parentheses is to document that in case of sequences, only "one-expression" expression lists are legal, so "misplaced" wouldn't be the right word. That being said, explaining that in actual prose would be better, but IMHO removing the parentheses (taking in to account the description of what the expected evaluation of sequences expression lists is) is enough. |
I think parentheses are intentional. "list must evaluate to an integer" looks weird. Please open an issue on the bug tracker and discuss this change with the original author. |
Thanks for the review, Serhiy! I'm adding the issue number now. |
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.
Yeah, the previous paragraph uses similar words without parentheses.
It is 'expression list' that must evaluate to whatever, referring back to
I don't think this needs a news entry. |
Thanks @andresdelfino for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6, 3.7. |
GH-7713 is a backport of this pull request to the 3.7 branch. |
'expresson list' refers to the grammar term 'expression_list' in the subscription production. (cherry picked from commit 4fddd4e) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Sorry, @andresdelfino and @terryjreedy, I could not cleanly backport this to |
GH-7714 is a backport of this pull request to the 3.6 branch. |
'expresson list' refers to the grammar term 'expression_list' in the subscription production. (cherry picked from commit 4fddd4e) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
GH-7716 is a backport of this pull request to the 2.7 branch. |
https://bugs.python.org/issue33852