bwobbones wrote: > Hi all, > > I'm a java programmer struggling to come to terms with python - bear > with me! > > I'm trying to subclass a class, and I want to be able to see it's > attributes also. Here are my classes: > > two.py > ***************************** > from one import one > > class two(one): > def __init__(self): > print "two" > > def printTestVar(self): > print "testVar: " + str(self.testVar) > *****************************
You simply forgot to call the parent __init__. You have to do that explicitely in Python. -- http://mail.python.org/mailman/listinfo/python-list