Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
Closed
Description
Bug report
Bug description:
% ./python.exe-c'yield x'File"<string>",line1SyntaxError:'yield'outsidefunction% ./python.exe-c'yield from x'File"<string>",line1SyntaxError:'yield'outsidefunction% ./python.exe-c'async def f(): yield from x'File"<string>",line1SyntaxError:'yield from'insideasyncfunction
The middle one should also say "yield from".
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
- gh-121657: Display correct error message for yield from outside of a … #121680
- gh-121657: Added an additional test using lambda #121722
- [3.13] gh-121657: Display correct error message for yield from outsid… #121768
- [3.12] gh-121657: Display correct error message for yield from outsid… #121769
- [3.13] gh-121657: Additional
yield from
error test using lambda (GH-121722) #121961 - [3.12] gh-121657: Additional
yield from
error test using lambda (GH-121722) #121962