UserDict question

Guyon Morée gumuz at
Tue Nov 4 15:39:47 CET 2003

Hi all,

I am using the UserDict baseclass and I want to add a __init__ to it to set
up some initial values.

my question is: do I have to run UserDict.UserDict.__init__ before doing
anything else?
as in:

class myClass(UserDict.UserDict):
  def __init__(self):
    UserDict.UserDict.__init__ (self)
    self.value = 1


it seems so easy, but somehow i don't really grasp it... what do i have to



More information about the Python-list mailing list