"self" - a python wart or "feature"

Yrjö Hatakka yrjo.hatakka at evolvit.fi
Tue Feb 18 03:20:24 EST 2003


Kaz Kylheku wrote:
> ceremona2000 at yahoo.com (Cere Davis) wrote in message news:<e32daabb.0302162004.6f7ceabf at posting.google.com>...
> 
>>Why bother requiring the
>>self keyword in every stinkin' method?  This seems klunky to me but
>>perhaps there is something I am missing here.
> 
> 
> Yes. What you are missing is that in order to get rid of the explicit
> self, you have to introduce the incredibly brain-damaged notion of
> ``class scope''.
> 


This explanation should be in FAQ, thanks Kaz





More information about the Python-list mailing list