Andrew Svetlov <andrew.svet...@gmail.com> added the comment:
I have a different feeling: we should start raising deprecation for asyncio.Queue() if it is created without running event loop. It required `get_event_loop()` and `loop.is_running()` checks. Later the pair can be replaced with `get_running_loop()`. I think no check at awaiting time is needed; we never do it for other asyncio parts. Just control of the loop at creation time is enough; if the object is created inside a running loop the sane code will use it with this loop context always. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38599> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com