xrange

Bryan belred1 at yahoo.com
Mon Jun 23 03:30:18 CEST 2003


oh no...

>>> for i in enumerate(['a', 'b', 'c']): print i
...
(0, 'a')
(1, 'b')
(2, 'c')
>>> for i in zip(count(), ['a', 'b', 'c']): print i
...
(0, 'a')
(1, 'b')
(2, 'c')
>>> for i in izip(count(), ['a', 'b', 'c']): print i
...
(0, 'a')
(1, 'b')
(2, 'c')
>>>






More information about the Python-list mailing list