CRAZY: First class namespaces

Terry Reedy tjreedy at udel.edu
Tue May 30 13:30:24 EDT 2000


"Amit Patel" <amitp at Xenon.Stanford.EDU> wrote > * Methods on objects:
>
>   We have to resolve the issue of "self" being a magic argument.

'self' isn't.  The first arg, whatever named, is.  Your proposal would
mandate that this
arg be named 'self', which is not the case now.  I usually just use 's'.

> .  You could "reparent" an
>   object on the fly to change its class.  Or you could use
>   prototype-based programming techniques, as in Self.

One can more or less do this now.  I posted a simple Self class a couple of
years ago to demonstate Pythons flexibility.

Terry J. Reedy






More information about the Python-list mailing list