Guido van Rossum added the comment: Well, the PEP clearly states that get_event_loop() should never return None and raise an exception if the context has no environment. (Where context ~~ thread.)
On Tue, Dec 16, 2014 at 3:48 PM, STINNER Victor <rep...@bugs.python.org> wrote: > > > 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 <rep...@bugs.python.org> > <http://bugs.python.org/issue22926> > _______________________________________ > ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22926> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com