Hi,

paul brian wrote on 22.09.2005:

>
>class Base:
>   def __init__(self):
>       print "hello"
>
>class Child(Base):
>   def __init__(self):
>       Base.__init__(self)
>

This is how I did it so far. But in my program, I have 10 subclasses with 
identical __init__ methods, so I can simplify the setup a lot.

Thanks for your help,

Jan
-- 
Alcohol and calculus don't mix - PLEASE don't drink and derive.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to