[issue19860] asyncio: Add context manager to BaseEventLoop?

Guido van Rossum report at bugs.python.org
Mon Dec 2 21:18:56 CET 2013


Guido van Rossum added the comment:

But there is Antoine's point.  This makes

  with get_event_loop() as loop:
      <do stuff with loop>

an attractive nuisance if it's used in the wrong place.

----------

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


More information about the Python-bugs-list mailing list