Hi all,
I'm currently reading Dive Into Python by Mark Pilgrim, and have gotten to the section on inheritance. In section 5.5, Pilgrim mentions the differences between inheriting from the wrapper class UserDict vs inheriting from the built-in dict type.
I'm having trouble understanding why anyone would even bother with the wrapper class... What are the benefits of inheriting from the UserDict wrapper class (or any of the other UserXxx classes)?
Your input is much appreciated. Thanks!