[issue21326] asyncio: request clearer error message when event loop closed
STINNER Victor
report at bugs.python.org
Wed Jun 4 01:17:55 CEST 2014
STINNER Victor added the comment:
I fixed the issue in Python 3.5 by adding a new BaseEventLoop.is_closed() method. Calling run_forever() or run_until_complete() now raises an error.
I don't know yet if this issue should be fixed in Python 3.4. If it should be fixed, I don't know how it should be fixed. Guido was unhappy with subclasses of BaseEventLoop accessing the private attribute BaseEventLoop._closed in the review of my patch.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21326>
_______________________________________
More information about the Python-bugs-list
mailing list