Changing class membership

Alex cut_me_out at
Wed Sep 27 18:51:51 CEST 2000

> How do i most elegantly let an object switch its class membership?

The class is specified by the __class__ attribute.  Use it carefully --
doing this a lot can make things really confusing.


Speak softly but carry a big carrot.

More information about the Python-list mailing list