Guido's new method definition idea
Andreas Waldenburger
geekmail at usenot.de
Sat Dec 6 07:37:04 EST 2008
On Sat, 6 Dec 2008 13:32:58 +0100 Andreas Waldenburger
<geekmail at usenot.de> wrote:
> On Sat, 6 Dec 2008 04:02:54 -0800 (PST) bearophileHUGS at lycos.com
> suggested:
>
>
> > class C:
> > def $method(arg):
> > $value = arg
> >
> > [snip]
> >
> [snip]
> "self" is a speaking identifier, "$" isn't.
>
Also, nothing prevents you from replacing "self" with "s" if you really
want it short. Same effect as your "s" suggestion (OK, plus one ".").
/W
--
My real email address is constructed by swapping the domain with the
recipient (local part).
More information about the Python-list
mailing list