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 koos.zevenhoven, ncoghlan, rhettinger, serhiy.storchaka, tim.peters
Date 2018-06-24.05:39:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1529818764.69.0.56676864532.issue31815@psf.upfronthosting.co.za>
In-reply-to
Content
The purpose would be two-fold:

1. The presence of the `check_signals()` wrapper provides a way to more explicitly document that the other itertools iterators *don't* implicitly check for signals, so if you want to combine them with consumers that also don't check for signals, then you're going to need to wrap the iterator.

2. As a helper for integration code that's dealing with consumers that don't check for signals, but want to make those loops interruptible. Doing that in Python (as in my example) is inefficient, since you end up running Python bytecode on every iteration, and also don't have as much control over exactly when the signals get checked.

Given a solution to issue 33939, I'd drop the priority on this issue to low, but I don't think it would make it redundant.
History
Date User Action Args
2018-06-24 05:39:24ncoghlansetrecipients: + ncoghlan, tim.peters, rhettinger, serhiy.storchaka, koos.zevenhoven
2018-06-24 05:39:24ncoghlansetmessageid: <1529818764.69.0.56676864532.issue31815@psf.upfronthosting.co.za>
2018-06-24 05:39:24ncoghlanlinkissue31815 messages
2018-06-24 05:39:24ncoghlancreate