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

STINNER Victor report at bugs.python.org
Sun Nov 23 10:32:03 CET 2014


New submission from STINNER Victor:

call_soon() call be called before the event loop starts and after run_forever(), the call will be executed by the next call to run_forever() (or run_until_complete).

But calling call_soon() after close() does not make sense and the user may be surprised to not see its function called. It can be obvious in a simple program, but not in a large application.

----------
components: asyncio
keywords: easy
messages: 231549
nosy: gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title: asyncio: call_soon() should raise an exception if the event loop is closed
versions: Python 3.4, Python 3.5

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


More information about the New-bugs-announce mailing list