Iterating over dict and removing some elements
Michele Simionato
michele.simionato at gmail.com
Tue May 11 11:21:07 EDT 2010
Or you copy the whole dictionary or you just copy the keys:
for k in d.keys():
...
or
for k in list(d):
...
More information about the Python-list
mailing list