In article <mailman.430.1253826262.2807.python-l...@python.org>,
Terry Reedy  <tjre...@udel.edu> wrote:
>Torsten Mohr wrote:
>> 
>> a = [1, 2, 3, 4, 5, 6]
>> 
>> for i, x in enumerate(a):
>
>If you change a list while iterating over, start at the tail.

This only applies if you add/remove elements; simply updating elements
does not require starting at the tail.
-- 
Aahz (a...@pythoncraft.com)           <*>         http://www.pythoncraft.com/

"....Normal is what cuts off your sixth finger and your tail..."  --Siobhan
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to