I want to write a custom class that behaves like dict - so, I am inheriting from dict.
dict
My question, though, is: Do I need to create a priva
Check the documentation on emulating container types. In your case, the first parameter to add should be self.
add
self