[issue22926] asyncio: raise an exception when called from the wrong thread

STINNER Victor report at bugs.python.org
Fri Dec 26 00:20:00 CET 2014


STINNER Victor added the comment:

I'm going to commit check_thread-3.patch if nobody complains: in debug mode, call_soon(), call_at() and call_later() now check threading.get_ident() to ensure that they are called from the thread running the event loop.

----------
Added file: http://bugs.python.org/file37542/check_thread-3.patch

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


More information about the Python-bugs-list mailing list