[Python-checkins] r63170 - python/trunk/Doc/library/functions.rst

Raymond Hettinger python at rcn.com
Mon May 12 19:09:49 CEST 2008


[Georg]
> Fix parameter name for enumerate().

> -.. function:: enumerate(iterable)
> +.. function:: enumerate(sequence)
> 
> -   Return an enumerate object. *iterable* must be a sequence, an :term:`iterator`, or some

I don't understand this change.  Why is *iterable* not correct?
Elsewhere, we've taken sequence to mean something with __getitem__ and __len__
while iterable means something that responds nicely to iter(obj).


Raymond


More information about the Python-checkins mailing list