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

STINNER Victor report at bugs.python.org
Wed Dec 17 00:48:40 CET 2014


STINNER Victor added the comment:

Guido wrote:
> I'm okay with this approach now.

I'm not sure that I understood your opinion. Are you ok to raise an exception in debug mode if call_soon() is called from a thread which has no event loop attached?

(Currently, an exception is already raised in debug mode, but only if the thread has an attached event loop, but not the good one.)

----------

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


More information about the Python-bugs-list mailing list