Subclassing dict: should dict.__init__() be called?
Subclassing dict: should dict.__init__() be called? Question: Here is a twofold question, with a theoretical part, and a practical one: When subclassing dict: class ImageDB(dict): def __init__(self, directory): dict.__init__(self) # Necessary?? … should dict.__init__(self) be called, just as a “safety” measure (e.g., in case there are some non-trivial implementation details that matter)? is there a …