Yury Selivanov added the comment: > Probably it would make sense to modify behavior of the default policy to make > get_event_loop to return Thread-local event loop when called from > out-of-event-loop and return currently running event loop when called from > within a coroutine.
The problem with this approach is that you're relying on the presence of GIL. If, let's say, PyPy releases tomorrow with 3.5 and STM, this won't work. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26969> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com