-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Bare yield's behaviour undocumented #100201
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
Labels
docs
Documentation in the Doc dir
Comments
|
No. That's about the value getting into the generator ( |
oh! thanks, i'll do the change then |
kumaraditya303
pushed a commit
that referenced
this issue
Jan 1, 2023
Co-authored-by: C.A.M. Gerlach <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jan 1, 2023
…honGH-100416) (cherry picked from commit 1aab269) Co-authored-by: ram vikram singh <[email protected]> Co-authored-by: C.A.M. Gerlach <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jan 1, 2023
…honGH-100416) (cherry picked from commit 1aab269) Co-authored-by: ram vikram singh <[email protected]> Co-authored-by: C.A.M. Gerlach <[email protected]>
miss-islington
added a commit
that referenced
this issue
Jan 1, 2023
(cherry picked from commit 1aab269) Co-authored-by: ram vikram singh <[email protected]> Co-authored-by: C.A.M. Gerlach <[email protected]>
miss-islington
added a commit
that referenced
this issue
Jan 1, 2023
(cherry picked from commit 1aab269) Co-authored-by: ram vikram singh <[email protected]> Co-authored-by: C.A.M. Gerlach <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That prints
None
, but the Yield expressions documentation doesn't say so. It only talks about "returning the value ofexpression_list
to the generator’s caller", but doesn't say thatNone
gets returned if the optionalexpression_list
isn't given.Maybe it's stated in the PEPs referenced at the end, but I think one shouldn't have to look that far. It should be right there in the documentation.
Linked PRs
yield
statement (GH-100416) #100664yield
statement (GH-100416) #100665The text was updated successfully, but these errors were encountered: