3.3 Standard Module UserDict

 

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 behaviours to dictionaries.

The UserDict module defines the UserDict class:

UserDict ()
Return a class instance that simulates a dictionary. The instance's contents are kept in a regular dictionary, which is accessible via the data attribute of UserDict instances.

data
A real dictionary used to store the contents of the UserDict class.


guido@python.org