STINNER Victor added the comment: > I have two programs, they occasionally infinite hang.
Can you please try the faulthandler module to try to get a traceback of all Python threads? I suggest to use the watchdog with a short timeout (ex: 60 seconds): https://docs.python.org/dev/library/faulthandler.html#faulthandler.dump_traceback_later > 1, print() function cause the infinite hang. > 2, If it hangs, simply press ENTER key, it goes on without any problem. Are you running your program in the Windows console (cmd.exe)? In IDLE? In PowerShell? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26744> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com