Kent Johnson wrote:


What Jacob is saying is, one common way to deal with this is to make a copy of the list and iterate over that while changing the original list. Your sample would look like this:

Hi,

And what if the list is *really* big ? Don't you loose much speed/memory while making a copy ?

Stéphane

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to