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 ncoghlan
Recipients ncoghlan, steven.daprano, vstinner
Date 2016-02-13.12:41:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1455367271.12.0.298587446631.issue26351@psf.upfronthosting.co.za>
In-reply-to
Content
At least list() and potentially other container constructors are also affected.

While it's mentioned in the thread, I'll explicitly note here that the problem is specifically with iterators implemented in C, like itertools.count().

Iterators implemented in Python already evaluate Python code on each iteration, which means Ctrl-C gets detected and converted to KeyboardInterrupt.
History
Date User Action Args
2016-02-13 12:41:11ncoghlansetrecipients: + ncoghlan, vstinner, steven.daprano
2016-02-13 12:41:11ncoghlansetmessageid: <1455367271.12.0.298587446631.issue26351@psf.upfronthosting.co.za>
2016-02-13 12:41:11ncoghlanlinkissue26351 messages
2016-02-13 12:41:10ncoghlancreate