Message229994
The first mention of iterator should link to 'glossary.html#term-iterator'.
There is a builtin iter() function. This may cause confusion in earlier suggested inline sample code.
-- Use the following inline sample code
-- in place of 'iter = enumerate(led)'to avoid confusion with iter() builtin:
led = ['red', 'green', 'blue']
iterator = enumerate(led)
try:
while True:
print iterator.next()
except StopIteration:
print 'End of iterator has been reached.' |
|
Date |
User |
Action |
Args |
2014-10-25 11:20:00 | vy0123 | set | recipients:
+ vy0123, georg.brandl, ezio.melotti, r.david.murray, docs@python, ethan.furman |
2014-10-25 11:20:00 | vy0123 | set | messageid: <1414236000.52.0.745007575016.issue22725@psf.upfronthosting.co.za> |
2014-10-25 11:20:00 | vy0123 | link | issue22725 messages |
2014-10-25 11:20:00 | vy0123 | create | |
|