iterate over a copy of the list:

for i, x in enumerate(a[:]):

Always worked for me ;)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to