Python and Schools

Andrew Dalke adalke at mindspring.com
Fri Apr 11 13:43:24 EDT 2003


Mads Orbesen Troest wrote:
> > but really; all the self me here and self me there is - to me at last -
> > exceedingly clumsy and a constant source of frustration.

Peter Hansen
> >>> import this

 ... from the interpreter and you'll see a list of 'Pythonic' guidelines.
More specifically, "explicit is better than implicit".  See the 'self'
and you know where the variable comes from.  Compare to C++
where you don't know (without some looking) if the variable is
an attribute or a variable in the compilation unit.

                    Andrew
                    dalke at dalkescientific.com






More information about the Python-list mailing list