Note: This module is available for backward compatibility only. If you are writing code that does not need to work with versions of Python earlier than Python 2.2, please consider subclassing directly from the built-in dictionary type.
This module defines a class that acts as a wrapper around dictionary objects. It is a useful base class for your own dictionary-like classes, which can inherit from them and override existing methods or add new ones. In this way one can add new behaviors to dictionaries.
The UserDict module defines the UserDict class:
In addition to supporting the methods and operations of mappings (see section 2.2.7), UserDict instances provide the following attribute:
See About this document... for information on suggesting changes.