JbUaNsK68 at cox.net
Thu Jul 8 01:24:14 CEST 2004
Using 'self' in classes seems pretty straight forward. My curiosity is
why I have to use it. Shouldn't it be implied? If I create an instance
of 'human' called 'bruce' and call the method 'blink' why do I have to
pass bruce into the method e.g.
for i in range(times):
bruce = human()
blink is a method of bruce because bruce is an instance of human.
Reading this silly code I can understand what is going on if self was
not included. Can anyone enlighten me as to why we have self?
by the way..six months of python and I'm 10 times the programmer I was
More information about the Python-list