-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
[3.8] bpo-10544: Disallow "yield" in comprehensions and generator expressions. #4564
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
[3.8] bpo-10544: Disallow "yield" in comprehensions and generator expressions. #4564
Conversation
f4f684d
to
6d5e555
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just adding a blocking review to ensure we don't merge this until after the 3.7 maintenance branch has been created.
When you're done making the requested changes, leave the comment: |
Could you please look on this again Nick? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, and the main branch is now open for 3.8 commits.
@@ -0,0 +1,2 @@ | |||
Yield expressions now are disallowed in comprehensions and generator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor wording tweak: now are -> are now
Maybe you can suggest better wording for What's New? |
The What's New wording seemed fine to me. |
Thank you @ncoghlan for your review. |
https://bugs.python.org/issue10544