Specialize syntax error on unparenthesized `yield`
Aperta
@johnslavik ci sta già lavorando.
Dal 16/9/2026.
interpreter-core
topic-parser
type-feature
- Lingua principale
- Python
- Stelle
- 77.2k
- Fork
- 35.9k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
Feature or enhancement
Current vs proposed:
>>> def f():
... print(yield 1)
...
File "<python-input-0>", line 2
print(yield 1)
- ^^^^^
-SyntaxError: invalid syntax. Did you mean 'not'?
+ ^^^^^^^
+SyntaxError: yield expression as an argument must be parenthesized
PR in progress.
Linked PRs
- gh-157767
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.