Disallow lone starred expressions at the *grammar* level
Aperta
@encukou ci sta già lavorando.
Dal 19/8/2026.
interpreter-core
topic-parser
- Lingua principale
- Python
- Stelle
- 77.2k
- Fork
- 35.9k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.