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.

Title: Wrong definition of a starred expression in the Language Reference
Type: behavior Stage:
Components: Documentation Versions: Python 3.9
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Takuo Matsuoka, docs@python, eric.araujo
Priority: normal Keywords:

Created on 2021-08-23 13:32 by Takuo Matsuoka, last changed 2022-04-11 14:59 by admin.

Messages (4)
msg400136 - (view) Author: Takuo Matsuoka (Takuo Matsuoka) Date: 2021-08-23 13:32
Being unaware of the processes here, I have posted the issue to the python-idea mailing list. Please refer to it.

Thank you.
msg400440 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2021-08-27 20:02
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]

However, in view of the definition of an assignment statement

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

I believe the correct definition actually used is

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

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

Should it be fixed?
msg400441 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2021-08-27 20:04
This should answer questions about the processes:
msg400686 - (view) Author: Takuo Matsuoka (Takuo Matsuoka) Date: 2021-08-31 04:14
Thanks Éric Araujo, for the information. Actually, I sought for a
similar issue here in the tracker, but didn't find one filed, so this
report appears to be unique.
Date User Action Args
2022-04-11 14:59:49adminsetgithub: 89146
2021-08-31 04:14:50Takuo Matsuokasetmessages: + msg400686
2021-08-27 20:04:36eric.araujosetmessages: + msg400441
2021-08-27 20:02:37eric.araujosetnosy: + eric.araujo
messages: + msg400440
2021-08-23 13:32:50Takuo Matsuokacreate