Python is faster than C
Robert Brewer
fumanchu at amor.org
Sun Apr 4 13:14:22 EDT 2004
Raymond Hettinger wrote:
> [Armin Rigo]
> > >>> enumerate([6,7,8,9]) # uh ?
> > <enumerate object at 0x401a102c>
>
> This got me thinking about how much I would like to see the contents
> of an iterator at the interactive prompt.
>8
> >>> enumerate('abcdefgh')
> <enumerate object at 0x401a102c: (0, 'a') (1, 'b') (2, 'c') ...>
This would not bring joy to not-repeatable iterators... :(
FuManChu
More information about the Python-list
mailing list