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

@ZackerySpytz ZackerySpytz Apr 9, 2019

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

@zsol zsol Jun 24, 2019

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

@isidentical isidentical Mar 7, 2020

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

@philipbergen philipbergen commented Jul 22, 2019

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

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

@isidentical isidentical Mar 7, 2020

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 Aug 10, 2021
@ambv ambv merged commit 149addd into python:main Aug 10, 2021
13 checks passed
@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Aug 10, 2021

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 added a commit to miss-islington/cpython that referenced this issue Aug 10, 2021
(cherry picked from commit 149addd)

Co-authored-by: Zsolt Dollenstein <zsol.zsol@gmail.com>
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Aug 10, 2021

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

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

Co-authored-by: Zsolt Dollenstein <zsol.zsol@gmail.com>
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Aug 10, 2021

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

ambv pushed a commit that referenced this issue Aug 10, 2021
(cherry picked from commit 149addd)

Co-authored-by: Zsolt Dollenstein <zsol.zsol@gmail.com>
miss-islington added a commit that referenced this issue Aug 10, 2021
(cherry picked from commit 149addd)

Co-authored-by: Zsolt Dollenstein <zsol.zsol@gmail.com>
JuniorJPDJ added a commit to JuniorJPDJ/cpython that referenced this issue Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
8 participants