Disallow lone starred expressions at the *grammar* level
Đang mở
@encukou đang làm issue này rồi.
Từ ngày 19/8/2026.
interpreter-core
topic-parser
- Ngôn ngữ chính
- Python
- Star
- 77.2k
- Fork
- 35.9k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
Statements like the following (where () can be any iterable -- or at the syntax level, any value):
*()x = *()yield *()return *()for _ in *(): ...
are not valid without a comma after the iterable.
These are allowed by python.gram and only rejected in the code generation step. This means that the documented Full Grammar specification is incomplete. We can do better.
Linked PRs
- gh-156059
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.