[issue38599] Deprecate creation of asyncio object when the loop is not running

Yury Selivanov report at bugs.python.org
Sun Oct 27 13:29:48 EDT 2019


Yury Selivanov <yselivanov at gmail.com> added the comment:

Yes.

As a remedy for this particular problem we can add checks here and there comparing `asyncio.get_running_loop()` and `self._loop`.  Performance will suffer a bit but the usability will greatly improve.

----------

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


More information about the Python-bugs-list mailing list