-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect error message for yield from
#121657
Comments
This is very easy to fix but I'll leave it for a bit in case a new contributor wants to get familiar with making a CPython change. Pointers for the fix:
|
I am not sure 5his should be fixed, as technically the error message is correct. The error message in the third example is more specific because |
I will give it a try :) |
…function (GH-121680) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Bénédikt Tran <[email protected]>
The existing message was technically correct, but |
…outside of a function (pythonGH-121680) (cherry picked from commit 178e44d) Co-authored-by: Gregor <[email protected]> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Bénédikt Tran <[email protected]>
GH-121768) (cherry picked from commit 178e44d) Co-authored-by: Gregor <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
GH-121769) (cherry picked from commit 178e44d) Co-authored-by: Gregor <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
… of a function (pythonGH-121680) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Bénédikt Tran <[email protected]>
…honGH-121722) (cherry picked from commit 1056f2b) Co-authored-by: Gregor <[email protected]>
…honGH-121722) (cherry picked from commit 1056f2b) Co-authored-by: Gregor <[email protected]>
…-121722) (GH-121961) (cherry picked from commit 1056f2b) Co-authored-by: Gregor <[email protected]>
…-121722) (GH-121962) (cherry picked from commit 1056f2b) Co-authored-by: Gregor <[email protected]>
Bug report
Bug description:
The middle one should also say "yield from".
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
yield from
error test using lambda (GH-121722) #121961yield from
error test using lambda (GH-121722) #121962The text was updated successfully, but these errors were encountered: