replacing the class of an instance
Fred L. Drake, Jr.
fdrake at cnri.reston.va.us
Fri Sep 24 16:07:03 EDT 1999
Bill Janssen writes:
> I'd like to be able to replace the class of previously created
> instances when I create a new version of the class. Is it sufficient
> to keep track of all the instances, then go through and change the
> __class__ member of each instance when I change the class definition?
Bill,
This would do the trick nicely.
-Fred
--
Fred L. Drake, Jr. <fdrake at cnri.reston.va.us>
Corporation for National Research Initiatives
More information about the Python-list
mailing list