Message232777
| Author |
gvanrossum |
| Recipients |
gvanrossum, vstinner, yselivanov |
| Date |
2014年12月16日.23:53:31 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<CAP7+vJL+A9gkEdJN3bDbTmV5uDvS=mnOjYkmJ47ukHM0myp4HQ@mail.gmail.com> |
| In-reply-to |
<1418773720.59.0.919194502637.issue22926@psf.upfronthosting.co.za> |
| Content |
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 <report@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 <report@bugs.python.org>
> <http://bugs.python.org/issue22926>
> _______________________________________
> |
|