Nathaniel Smith added the comment:

If it helps, notice that the SetEvent(sigint_event) call used to wake up the 
main thread on windows is also performed unconditionally and after the call to 
Py_AddPendingEvent. From the point of view of twisted/tornado/trio, this is 
exactly the same as the write to the wakeup fd -- the only reason we use the 
wakeup fd instead of the sigint_event is that it's more convenient to wait on 
an fd than on an event object.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30038>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to