Why 'self' ?

Erik Max Francis max at alcyone.com
Wed Oct 31 12:48:29 EST 2001


"Schaefer, F." wrote:

> It's been a while that I am working with Python and actually
> the only thing I really do not like about it is 'self' in the
> member function definitions as argument. If it
> has to be there anyway, it is totally redundant to write it.
> 
> So, why is self there ?

Because, in Python, explicit is better than implicit.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ Laws are silent in time of war.
\__/ Cicero
    Esperanto reference / http://www.alcyone.com/max/lang/esperanto/
 An Esperanto reference for English speakers.



More information about the Python-list mailing list