Message248456
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 :) |
|
Date |
User |
Action |
Args |
2015-08-12 12:11:58 | r.david.murray | set | recipients:
+ r.david.murray, flying sheep |
2015-08-12 12:11:58 | r.david.murray | set | messageid: <1439381518.34.0.215637547603.issue24849@psf.upfronthosting.co.za> |
2015-08-12 12:11:58 | r.david.murray | link | issue24849 messages |
2015-08-12 12:11:57 | r.david.murray | create | |
|