Skip to content
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

bpo-33349: make lib2to3 parse async generators everywhere #6588

Merged
merged 1 commit into from
Aug 10, 2021

Conversation

zsol
Copy link
Contributor

@zsol zsol commented Apr 24, 2018

The caveat with this implementation is that it also accepts the following without raising SyntaxError:

def f():
    async for i in arange(2):
         pass

https://bugs.python.org/issue33349

@@ -0,0 +1 @@
lib2to3 now recognizes async generators everywhere.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the news entry needs more details -- it's currently rather vague.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about "lib2to3 now recognizes async generators in non-async contexts"?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no opposition to the current version though the one you proposed also OK.

@philipbergen
Copy link

Is this issue addressed? What would it take to merge this?

@csabella csabella requested review from 1st1 and benjaminp January 14, 2020 12:18
@@ -0,0 +1 @@
lib2to3 now recognizes async generators everywhere.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no opposition to the current version though the one you proposed also OK.

@ambv ambv force-pushed the 2to3-async-generator branch from 75a4ece to 4d45397 Compare August 10, 2021 08:33
@ambv ambv added needs backport to 3.9 only security fixes needs backport to 3.10 only security fixes labels Aug 10, 2021
@ambv ambv merged commit 149addd into python:main Aug 10, 2021
@miss-islington
Copy link
Contributor

Thanks @zsol for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 10, 2021
(cherry picked from commit 149addd)

Co-authored-by: Zsolt Dollenstein <[email protected]>
@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Aug 10, 2021
@bedevere-bot
Copy link

GH-27702 is a backport of this pull request to the 3.10 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 10, 2021
(cherry picked from commit 149addd)

Co-authored-by: Zsolt Dollenstein <[email protected]>
@bedevere-bot
Copy link

GH-27703 is a backport of this pull request to the 3.9 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Aug 10, 2021
ambv pushed a commit that referenced this pull request Aug 10, 2021
(cherry picked from commit 149addd)

Co-authored-by: Zsolt Dollenstein <[email protected]>
miss-islington added a commit that referenced this pull request Aug 10, 2021
(cherry picked from commit 149addd)

Co-authored-by: Zsolt Dollenstein <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants