[issue29926] time.sleep ignores _thread.interrupt_main()
Eryk Sun
report at bugs.python.org
Tue Mar 28 19:03:37 EDT 2017
Eryk Sun added the comment:
> Even is IDLE is started from a console, the user execution process
> is not attached to one.
Actually, the execution process is attached to a console, but it doesn't use it for sys.std*. Try
open('con', 'w').write('spam\n')
> It is much like closing a terminal Window with [X], and restarting
> the terminal and python, instead of using ^C.
There's no default handler for SIGBREAK, so when working in the console it's typically better to use Ctrl+Break to kill Python. This preserves the console's arrow-key & F7 input history and scrollback buffer.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29926>
_______________________________________
More information about the Python-bugs-list
mailing list