UserDict question

Guyon Morée gumuz at looze.net
Tue Nov 4 09:39:47 EST 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
do?


thanks,

guyon






More information about the Python-list mailing list