STINNER Victor <victor.stin...@gmail.com> added the comment:

> `remove_signal_handler()` should do nothing if `sys.is_finalizing()` is true.

I dislike this option.

If you want to use sys.is_finalizing(), I would prefer to modify 
_UnixSelectorEventLoop.close() to not try to remove signal handler if close() 
has been called too late during Python finalization. But I also expect a 
warning in this case, not hide bugs silently.

If you reach this case, close() has probably been called by 
BaseEventLoop.__del__().

----------

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

Reply via email to