skydoom added the comment: seems we also need to check whether _main_thread is daemon thread or not, so the proposed patch would look like:
def _shutdown(): # add these checking first if( _main_thread.isDaemon() is False or _main_thread.is_alive() is False ): return ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26693> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com