STINNER Victor added the comment: Attached asyncio_closed_py34.patch: minimum patch to fix this issue. run_forever() and run_until_complete() raises a RuntimeError if the event loop was closed.
The patch only uses the private attribute BaseEventLoop._closed in the BaseEventLoop class, not outside. ---------- keywords: +patch Added file: http://bugs.python.org/file35474/asyncio_closed_py34.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21326> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com