Changing the class of an instance

Alex cut_me_out at hotmail.com
Wed Jul 12 13:45:15 EDT 2000


> Is it legal (it seems to work) to change the class of an object by
> assigning to its __class__ attribute?

I guess if you can do it, it's legal.

On-the-run-from-the-python-coding-standards-police-myself'ly yr's
Alex.



More information about the Python-list mailing list