I'm not sure if I should file this as a bug or a feature...I just noticed it in a discussion, and thought I'd raise the issue. It's possible this is intended behavior.
asyncio.__init__ imports everything from all of its submodules and puts almost everything into __all__, I assume so people can from asyncio import *. It looks like asyncio.taskgroups was omitted from this, I am guessing by accident (the lists are not in the same order).
I guess people usually don't use that pattern, or not enough have done so and found the last of TaskGroup annoying, so it went under the radar. But very easy to fix, happy to open a PR if desired.
Linked PRs
I'm not sure if I should file this as a bug or a feature...I just noticed it in a discussion, and thought I'd raise the issue. It's possible this is intended behavior.
asyncio.__init__imports everything from all of its submodules and puts almost everything into__all__, I assume so people canfrom asyncio import *. It looks likeasyncio.taskgroupswas omitted from this, I am guessing by accident (the lists are not in the same order).I guess people usually don't use that pattern, or not enough have done so and found the last of
TaskGroupannoying, so it went under the radar. But very easy to fix, happy to open a PR if desired.Linked PRs
asyncio.taskgroups.__all__toasyncio.__all__#106090asyncio.taskgroups.__all__toasyncio.__all__(GH-106090) #106098