bpo-33852: Remove misplaced parentheses around 'list'.#7672
bpo-33852: Remove misplaced parentheses around 'list'.#7672terryjreedy merged 1 commit intopython:masterfrom
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. |
gvanrossum
left a comment
There was a problem hiding this comment.
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