[issue33049] itertools.count() confusingly mentions zip() and sequence numbers

2018-03-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: Since I don't like "sequential numbers", let's opt for the "leave it alone" option :-) -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue33049] itertools.count() confusingly mentions zip() and sequence numbers

2018-03-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think 'sequential numbers' would be slightly better than 'sequence numbers'. To be, it better includes stepped and descending sequences. (Enough better that I would be willing to do the PR and merge.) Otherwise, I think leave it alone. -- nosy:

[issue33049] itertools.count() confusingly mentions zip() and sequence numbers

2018-03-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: > This is a strange thing to note though because enumerate > would be a better use here. IIRC, the wording predates the addition of enumerate() and before enumerate() grew a *start* argument. That said, enumerate() just addresses care the most common cas

[issue33049] itertools.count() confusingly mentions zip() and sequence numbers

2018-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For example zip(my_sequence, count(1)). -- nosy: +rhettinger, serhiy.storchaka ___ Python tracker ___ __

[issue33049] itertools.count() confusingly mentions zip() and sequence numbers

2018-03-11 Thread Trey Hunner
New submission from Trey Hunner : >From the itertools documentation: >https://docs.python.org/3/library/itertools.html?highlight=itertools#itertools.count > Also, used with zip() to add sequence numbers. I'm not certain what the goal of the original sentence was, but I think it's unclear as c