[Tutor] TypeError

Christopher Spears cspears2002 at yahoo.com
Fri Feb 27 13:43:35 EST 2004

I entered the following code and got an error:

>>> import UserDict
>>> a = UserDict()

Traceback (most recent call last):
  File "<pyshell#3>", line 1, in -toplevel-
    a = UserDict()
TypeError: 'module' object is not callable

What does this mean?  I am trying to use the UserDict
class, which is is located in the UserDict module. 
When I normally assign a class to a variable, the
above syntax works.  This is especially frustrating to
me because I know I was able to do this yesterday.

More information about the Tutor mailing list