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?
--
http://mail.python.org/mailman/listinfo/python-list