replacing the class of an instance
Bill Rodgers
Bill at nospam.com
Fri Sep 24 16:59:43 EDT 1999
If you use Smalltalk, it will happen automatically. That's
the default behavior. Check it out if you have a little spare
time. It's an excellent development environment for many
types of apps.
Bill Janssen <janssen at parc.xerox.com> wrote in message
news:99Sep24.123307pdt."3473"@watson.parc.xerox.com...
> 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?
>
> Or is there an even easier way?
>
> Bill
>
>
More information about the Python-list
mailing list