[Zope-dev] Extending a class' __bases__ at runtime

Morten W. Petersen morten@thingamy.net
Sun, 19 Aug 2001 19:45:55 +0200 (CEST)


On Sun, 19 Aug 2001, Chris Withers wrote:

> > Any clues on what needs to be done to be able to modify a class' base
> > classes at runtime?
> 
> I do feel the need to ask why on earth you want to do it?!

If you take a look here:

	http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/~checkout~/warp-framework/warp_framework/utils.py?rev=1.12&content-type=text/plain

It's part of a scheme to easily register subclasses (not subclasses in the
pythonish sense, rather the Zope-and-meta-type sense) where modification
of the containing class is needed (some extra methods for example).

Cheers,

Morten