Andrew Svetlov <andrew.svet...@gmail.com> added the comment:
Technically signal handlers are called from main thread, while loop can be executed in another one. *In general* `call_soon_threadsafe()` is the correct solution. Also, it works fine just now with Python 3.5+ Let's close as won't fix ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36626> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com