Andrew Svetlov <andrew.svet...@gmail.com> added the comment:
BaseEventLoop has _check_loop() method that is closed in debug mode only. UnixEventLoop doesn't call this method for unix-specific API. Adding the check to add_signal_handler()/remove_signal_handler() doesn't hurt, sure. But it doesn't help as the script is executed in non-debug mode. Performing a check on every call_soon() call kills the performance, that's why debug mode is required. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34680> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com