STINNER Victor added the comment:

2014-12-17 0:53 GMT+01:00 Guido van Rossum <rep...@bugs.python.org>:
> 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.)

You don't reply to my question, or I misunderstood your anwer.
call_soon() is a method an event loop, there is no need to call
get_event_loop(). get_event_loop() is only called in debug mode to
help the developer to detect obvious bugs. I don't think that the
behaviour of the debug mode must be written in the PEP, it's more
implementation specific.

----------

_______________________________________
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

Reply via email to