tismer at tismer.com
Wed Apr 26 02:09:19 CEST 2000
Robb Shecter wrote:
> I read an old post about metaclasses (included on the cd-rom with the
> book "Mit Python programmieren"), and got very interested, because I
> imagine that by making a new metaclass, I could maybe fix the one thing
> about Python that annoys me: the obligatory use of "self" in method
> declarations and variable access. (Python's syntax is so clean and neat
> in all other areas, I feel like it's a shame that there's excess
> verbosity in this one place.)
No-no. No? No!
There are reasons why people might want to use metaclasses.
But not just to get rid of that verbose "self" argument.
I'd suggest to stay with both the shame and classes as they
are now. This is the cheapest possible way here: Change your
mind about self --
-- it is not *the* problem. it is *really* no problem.
The problem is very much different and harder.
Ask me via private mails if you don't get it.
ciao - chris
Christian Tismer :^) <mailto:tismer at appliedbiometrics.com>
Applied Biometrics GmbH : Have a break! Take a ride on Python's
Kaunstr. 26 : *Starship* http://starship.python.net
14163 Berlin : PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint E182 71C7 1A9D 66E9 9D15 D3CC D4D7 93E2 1FAE F6DF
where do you want to jump today? http://www.stackless.com
More information about the Python-list