[issue19860] asyncio: Add context manager to BaseEventLoop?

STINNER Victor report at bugs.python.org
Mon Dec 2 17:22:08 CET 2013


STINNER Victor added the comment:

"There's another problem: get_event_loop() returns a persistent object, not a new instance every time."

Oh, I didn't know that, but it makes sense. It should be documented.

It is possible to create a second event loop, only used to execute a short one-shot task? I don't see how to instanciate a second event loop.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19860>
_______________________________________


More information about the Python-bugs-list mailing list