[issue31815] Make itertools iterators interrable

2017-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4011 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue31815] Make itertools iterators interrable

2017-10-18 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Proposed PR makes tight C loops with itertools iterators interruptible with Ctrl-C. It adds checks for keyboard interrupt in iterators that can produce long sequences without advancing other iterators. For performance checks are performed only for every 0