What is the proper way to remove keys from a dictionary with value == None in Python?
None
You could also take a copy of the dict to avoid iterating the original dict while altering it.
dict
for k, v in dict(d).items(): if v is None: del d[k]
But that might not be a great idea for larger dictionaries.