Metaclasses?

Terry Reedy tjreedy at udel.edu
Wed Apr 26 00:37:47 EDT 2000


"Robb Shecter" <shecter at darmstadt.gmd.de> wrote in message
news:3905F4A0.2B39C705 at darmstadt.gmd.de...
> Hi,
>
> 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.)

The literal string 'self' is not obligatory.  's' or 'me' work just as
well, as long as you are consistent.






More information about the Python-list mailing list