-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-34970: Protect tasks weak set manipulation in asyncio.all_tasks() #9837
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
Lib/asyncio/tasks.py
Outdated
return {t for t in _all_tasks | ||
# NB: set(_all_tasks) is required to protect | ||
# from https://bugs.python.org/issue34970 bug | ||
return {t for t in set(_all_tasks) |
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.
Can you make it a list()
call instead of set()
?
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.
Done
@asvetlov: Status check is done, and it's a success ✅ . |
Thanks @asvetlov for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
…pythonGH-9837) https://bugs.python.org/issue34970 (cherry picked from commit 97cf082) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
GH-9849 is a backport of this pull request to the 3.7 branch. |
…GH-9837) (GH-9849) https://bugs.python.org/issue34970 (cherry picked from commit 97cf082) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
…pythonGH-9837) (pythonGH-9849) https://bugs.python.org/issue34970 (cherry picked from commit 97cf082) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
https://bugs.python.org/issue34970