[issue22922] asyncio: call_soon() should raise an exception if the event loop is closed

STINNER Victor report at bugs.python.org
Fri Nov 28 00:42:10 CET 2014


STINNER Victor added the comment:

> If the decision is to go this path I would also suggest to add a new exception type for "Event loop is closed" so that it can be caught in client code.

I don't see the purpose of handling such exception. It's an obvious
bug, you must not handle bugs :)

----------

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


More information about the Python-bugs-list mailing list