[issue46844] Context-based TaskGroup for legacy libraries

Andrew Svetlov report at bugs.python.org
Thu Feb 24 04:56:19 EST 2022


Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:

I personally don't think that the described opt-in trick should be a part of asyncio.
A third-party library that patches asyncio.create_task() can be a useful thing though during the transition period.
We even cannot deprecate asyncio.create_task() right now: the minimal supported Python 3.7 thas now alternative, writing cross-version code is overcomplicated.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46844>
_______________________________________


More information about the Python-bugs-list mailing list