enumerate :: Class enumerate
[hide private]
[frames] | no frames]

type enumerate

object --+
         |
        enumerate

enumerate(iterable) -> iterator for index, value of iterable

Return an enumerate object. iterable must be an other object that supports iteration. The enumerate object yields pairs containing a count (from zero) and a value yielded by the iterable argument. enumerate is useful for obtaining an indexed list: (0, seq[0]), (1, seq[1]), (2, seq[2]), ...

Instance Methods [hide private]
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
 
__iter__(x)
iter(x)
a new object with type S, a subtype of T
__new__(T, S, ...)
the next value, or raise StopIteration
next(x)
Method Details [hide private]

__getattribute__(...)

 

x.__getattribute__('name') <==> x.name

Overrides: object.__getattribute__

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__