This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gslavin
Recipients gslavin, ncoghlan, rhettinger, steven.daprano, terry.reedy, vstinner, wim.glenn
Date 2016-09-20.01:16:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1474334209.0.0.266551590358.issue26351@psf.upfronthosting.co.za>
In-reply-to
Content
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 :)
History
Date User Action Args
2016-09-20 01:16:49gslavinsetrecipients: + gslavin, rhettinger, terry.reedy, ncoghlan, vstinner, steven.daprano, wim.glenn
2016-09-20 01:16:49gslavinsetmessageid: <1474334209.0.0.266551590358.issue26351@psf.upfronthosting.co.za>
2016-09-20 01:16:48gslavinlinkissue26351 messages
2016-09-20 01:16:48gslavincreate