Eryk Sun added the comment:
As a workaround, the platform's default Ctrl+C handler should allow killing the
process:
>>> signal.signal(signal.SIGINT, signal.SIG_DFL)
<built-in function default_int_handler>
>>> counter = itertools.count()
>>> 'count' in counter
^C
But it's nowhere near as useful as a KeyboardInterrupt exception, if something
ever gets implemented to resolve issue 26351.
----------
nosy: +eryksun
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue29222>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com