[issue26744] print() function hangs on MS-Windows 10

STINNER Victor report at bugs.python.org
Wed Apr 13 05:32:13 EDT 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue26744>
_______________________________________


More information about the Python-bugs-list mailing list