Changing class membership

Alex cut_me_out at hotmail.com
Wed Sep 27 12:51:51 EDT 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.

Alex.

-- 
Speak softly but carry a big carrot.




More information about the Python-list mailing list