This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.araujo
Recipients Takuo Matsuoka, docs@python, eric.araujo
Date 2021-08-27.20:02:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630094557.56.0.421871787659.issue44983@roundup.psfhosted.org>
In-reply-to
Content
Hello!  For future tickets, please include all relevant info here rather that only links.

Linked message is:



According to the Language Reference, a starred expression is defined by

starred_expression ::=  expression | (starred_item ",")* [starred_item]

https://docs.python.org/3/reference/expressions.html#expression-lists

However, in view of the definition of an assignment statement

assignment_stmt ::=  (target_list "=")+ (starred_expression | yield_expression)

https://docs.python.org/3/reference/simple_stmts.html#assignment-statements

I believe the correct definition actually used is

starred_expression ::=  expression | (starred_item ",")+ [starred_item]

(that is, use "+" instead of "*").

Should it be fixed?
History
Date User Action Args
2021-08-27 20:02:37eric.araujosetrecipients: + eric.araujo, docs@python, Takuo Matsuoka
2021-08-27 20:02:37eric.araujosetmessageid: <1630094557.56.0.421871787659.issue44983@roundup.psfhosted.org>
2021-08-27 20:02:37eric.araujolinkissue44983 messages
2021-08-27 20:02:37eric.araujocreate