George Slavin added the comment:
I have a patch that checks for KeyboardInterrupt during builtin operations.
This allows sum, max, min, list, dict, set, and tuple calls to be interrupted
when they are working on infinite iterators.
I've attached the patch, and a test I wrote to show that you can ctrl-c out of
all the above calls.
This is my first attempt at a patch, so I would appreciate any feedback on what
I need to fix to allow it to be submitted :)
Added file: http://bugs.python.org/file44746/KeyboardInterrupt.patch
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list