Message320353
> 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. |
|
Date |
User |
Action |
Args |
2018-06-24 05:19:18 | rhettinger | set | recipients:
+ rhettinger, tim.peters, ncoghlan, serhiy.storchaka, koos.zevenhoven |
2018-06-24 05:19:18 | rhettinger | set | messageid: <1529817558.87.0.56676864532.issue31815@psf.upfronthosting.co.za> |
2018-06-24 05:19:18 | rhettinger | link | issue31815 messages |
2018-06-24 05:19:18 | rhettinger | create | |
|