-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
@asynccontextmanager doesn't work well with async generators #77967
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
Comments
Running main() leads to |
Sorry, |
Would be nice to fix this in 3.7.0 |
Please do! |
This doesn't appear to have been backported to 3.7, even though it's in 3.6.6 and 3.8.0a0. |
Indeed, the backport to 3.7 slipped through the cracks somehow; we should fix that. Thanks for bringing this up! |
I'm still not sure exactly what happened here but it looks like the backport to 3.7 (PR 7506) from the original fix in master (pre-3.8) (PR 7467) failed but the backport to 3.6 (PR 7507) succeeded. And then it was backported a second time to 3.6 (PR 7514) which also succeeded but had no effect since there were no intervening changes to those files. So it may be that PR 7514 was intended to be for 3.7 instead of 3.6. In any case, a fresh backport from master to 3.7 (PR 21878) succeeded and tests pass, so into 3.7 it goes for release in 3.7.9. |
Thank you very much, Ned! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: