Perl/Python/Ruby common backend (Parrot, can Ruby play too?)
Alex Martelli
aleaxit at yahoo.com
Tue Aug 7 15:46:15 EDT 2001
"Phil Tomson" <ptkwt at shell1.aracnet.com> wrote in message
news:zwWb7.29640$C7.10332563 at e3500-chi1.usenetserver.com...
...
> >change a class's bases...) --
>
> Not sure about this one - do you mean that you can change the class's base
> class?
base classes, plural (which I had shortened to 'bases') -- you can change
the tuple of base classes of a class, yes (multiple inheritance), and indeed
the typical use is adding a mix-in on the fly, e.g.:
theclass.__bases__ += (themixin,)
Alex
More information about the Python-list
mailing list