-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-36091: remove reference to async generator in Lib/types.py #11996
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
Conversation
Thanks @scotchka for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
…onGH-11996) (cherry picked from commit 0a6a412) Co-authored-by: Henry Chen <[email protected]>
GH-12146 is a backport of this pull request to the 3.7 branch. |
…1996) (cherry picked from commit 0a6a412) Co-authored-by: Henry Chen <[email protected]>
|
issue related to buildbot AMD64 FreeBSD CURRENT Shared 3.x failure: |
The types module creates an async generator
_ag
for the purpose of extracting its type. This causes a GeneratorExit exception upon program exit, as can be seen by running the following script:which outputs
To preempt this, this PR proposes to delete
_ag
after getting its type, which is its sole purpose, like several other objects in the types module.https://bugs.python.org/issue36091