[Q]Python Classes
Siew-Ann Cheong
cheong at msc.cornell.edu
Sun May 27 09:10:34 EDT 2001
Nick Perkins (nperkins7 at home.com) wrote:
: close!, you just have to remember to use self to refer to
: class methods, like this:
:
: > class MyClass:
: > def __init__(self, data):
: > self.private_data = data
: > self.MyInitialization()
: ^^^^
: > def MyInitialization(self):
: ...
Thanks! That works! I think my problem was with reloading the class
definitions when I was playing with this, but I have since found out how
to reload modules properly.
Cheong Siew Ann
More information about the Python-list
mailing list