[issue23871] turning itertools.{repeat, count} into indexable iterables

2015-04-05 Thread R. David Murray
R. David Murray added the comment: I agree with Antti. If Raymond disagrees he can reopen :) (There is a reason it is called *iter*tools. As Antti says, range is documented as being a *sequence* type.) -- nosy: +r.david.murray resolution: -> rejected stage: -> resolved status: open

[issue23871] turning itertools.{repeat, count} into indexable iterables

2015-04-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23871] turning itertools.{repeat, count} into indexable iterables

2015-04-05 Thread Antti Haapala
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 (otherwi

[issue23871] turning itertools.{repeat, count} into indexable iterables

2015-04-04 Thread Antony Lee
New submission from Antony Lee: itertools.repeat and itertools.count could be made into indexable iterables (rather than iterators), rather than iterators, like range is right now. -- components: Library (Lib) messages: 240096 nosy: Antony.Lee priority: normal severity: normal status: o