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 r.david.murray
Recipients flying sheep, r.david.murray
Date 2015-08-12.12:11:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1439381518.34.0.215637547603.issue24849@psf.upfronthosting.co.za>
In-reply-to
Content
No, you may not iterate the iterator in order to compute the len, because then the iterator would be exhausted.  In addition, the point of itertools is to *lazily* do operations on iterables of indefinite length, so to offer __len__ if and only if the arguments supported len (for cases where that would work) would be essentially false advertising :)
History
Date User Action Args
2015-08-12 12:11:58r.david.murraysetrecipients: + r.david.murray, flying sheep
2015-08-12 12:11:58r.david.murraysetmessageid: <1439381518.34.0.215637547603.issue24849@psf.upfronthosting.co.za>
2015-08-12 12:11:58r.david.murraylinkissue24849 messages
2015-08-12 12:11:57r.david.murraycreate