[issue26351] Occasionally check for Ctrl-C in long-running operations like sum

Terry J. Reedy report at bugs.python.org
Wed Sep 21 17:42:39 EDT 2016


Terry J. Reedy added the comment:

The request is to check 'occasionally'.  To me this means perhaps once a second, which is to say, ^c should generally interrupt within a second, and on average with half a second.  The following takes just under a second: "sum(i for i in range(10000000))" whereas "for i in range(10000000): pass" takes a fourth of that.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26351>
_______________________________________


More information about the Python-bugs-list mailing list