In article <[email protected]>, Terry Reedy <[email protected]> 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 ([email protected]) <*> http://www.pythoncraft.com/ "....Normal is what cuts off your sixth finger and your tail..." --Siobhan -- http://mail.python.org/mailman/listinfo/python-list
