string issue

rbt rbt at athop1.ath.vt.edu
Fri Feb 4 14:55:01 EST 2005


Alan McIntyre wrote:
> I think it's because you're modifying the list as you're iterating over 
> it.  

One last clarification on this. It's OK to modify the elements of a 
list, but not the list itself while iterating over it... is that the 
correct way to think about this?



More information about the Python-list mailing list