So I am curious lets say I have a class as follows
class myClass: def __init__(self): parts = 1 to = 2 a = 3 whole = 4
One use is to delete specific keys from a dictionary.
>>>> food = {"apple": True, "banana": False} >>>> del food['banana'] >>>> import json >>>> json.dumps(food) '{"apple": true}'
I use it all the time for cleaning up dictionaries before converting them to JSON.