[issue23871] turning itertools.{repeat, count} into indexable iterables
Antti Haapala
report at bugs.python.org
Sun Apr 5 10:38:58 CEST 2015
Antti Haapala added the comment:
well, they wouldn't and shouldn't behave like range. range is a sequence whereas count or repeat wouldn't necessarily be sequences. (they can be infinite and thus not having length). And the count shouldn't be *reiterable* because that is why it exists (otherwise we could just use range). For repeat, indexing hardly matters.
----------
nosy: +ztane
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23871>
_______________________________________
More information about the Python-bugs-list
mailing list