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 rhettinger
Recipients koos.zevenhoven, ncoghlan, rhettinger, serhiy.storchaka, tim.peters
Date 2018-06-24.05:19:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1529817558.87.0.56676864532.issue31815@psf.upfronthosting.co.za>
In-reply-to
Content
> What if itertools were to offer an opt-in ...

This doesn't make sense to me.  As far as I can tell, the only time this issue has ever arisen in the past 15 or 16 years is when someone was trying to create an unbreakable infinite loop on-purpose.  In a way, it is no more interesting than intentionally triggering a seqfault with ctypes or bytecode hacks.  Likewise, it isn't even unique to itertools -- it shows up in any potentially long running C-code such as numpy/scipy calls.

I would like to close this issue and instead go down the path of issue 33939 which would allow consumers to detect when an input expects to be infinite.  The consumers can then decide whether they want to make periodic cntl-c checks.
History
Date User Action Args
2018-06-24 05:19:18rhettingersetrecipients: + rhettinger, tim.peters, ncoghlan, serhiy.storchaka, koos.zevenhoven
2018-06-24 05:19:18rhettingersetmessageid: <1529817558.87.0.56676864532.issue31815@psf.upfronthosting.co.za>
2018-06-24 05:19:18rhettingerlinkissue31815 messages
2018-06-24 05:19:18rhettingercreate