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 koos.zevenhoven
Recipients bbayles, erik.bray, jdemeyer, koos.zevenhoven, ncoghlan, pitrou, rhettinger, serhiy.storchaka
Date 2018-08-17.18:42:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I'd say there are three different problems related to this:

(1) The inability of infinite iterators/iterables to say anything about their length

(2) The inability to interrupt C-level loops

(3) The horrible consequences of things like list(itertools.count()) that fill up the memory

The problems overlap only partially. Unfortunately, fixing any single one of these problems does not eliminate the two others. For example, (2) and (3) may happen just as well without the iterator protocol being involved. And (1) may just prevent you from checking if the iterable has enough elements for whatever you're doing.
Date User Action Args
2018-08-17 18:42:10koos.zevenhovensetrecipients: + koos.zevenhoven, rhettinger, ncoghlan, pitrou, erik.bray, serhiy.storchaka, jdemeyer, bbayles
2018-08-17 18:42:10koos.zevenhovensetmessageid: <>
2018-08-17 18:42:10koos.zevenhovenlinkissue33939 messages
2018-08-17 18:42:10koos.zevenhovencreate