extending inherited function

Andy Beall beall at psych.ucsb.edu
Thu Sep 2 22:53:28 EDT 1999


I'm using class inheritance and both my base and derived classes define
an __init__ function.  But it appears that the derived class overwrites
the __init__ function of the base class.  Is there a way to extend the
base class function without overwriting, or just have both __init__
functions called?

Thanks,
Andy-

-- 
+-----------------------------------------------------------------------+
| Andy Beall                                Research Center for Virtual
|
|                                             Environments and Behavior
|
| http://web.mit.edu/beall/www/                        Dept. Psychology
|
| 805/893-5957                                       U.C. Santa Barbara
|
|                                               Santa Barbara, CA 93106
|
+-----------------------------------------------------------------------+




More information about the Python-list mailing list