Created
July 11, 2009 16:00
-
-
Save igorgue/145293 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
d1 = {'a': 1} | |
d2 = {'a': 1, 'b': 2} | |
l = [d1, d2, d1, d2] | |
for i in l: | |
i.pop('b', None) | |
print l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment