me at privacy.net
Fri Jun 9 04:50:42 CEST 2006
On Thu, 08 Jun 2006 21:14:48 -0400,
alf <ask at me> wrote:
> is there any way to tell the class the base class during runtime?
>>> class A(object):
>>> class B(object):
>>> o = A()
>>> o.__class__ = B
I don't know if that's a good idea. Maybe this one:
C = A
C = B
Why do you want to change a class' base class during runtime?
"I wish people would die in alphabetical order." -- My wife, the genealogist
More information about the Python-list