Calling the parent class' __init__
Thomas Gagne
tgagne at ix.netcom.com
Fri Oct 6 00:00:23 EDT 2000
A parent class defines some instance variables I want to access in the
subclass. I thought I was supposed to call the super class' __init__ but
whenever I tried I got errors so I didn't--but the first time I tried
accessing the super's instance variable (oddly enough, in one of the super's
methods) I got a name error. Wierd.
Does anyone have some pointers?
--
.tom
More information about the Python-list
mailing list