What is the proper way to remove keys from a dictionary with value == None in Python?
None
if you don't want to make a copy
for k,v in list(foo.items()): if v is None: del foo[k]