object changing itself to another object

Glen Murphy abuse at nospamtron.riot.com.au
Thu Sep 26 15:43:00 CEST 2002


> You have not checked O'Reilly's Python Cookbook, I think, because
> this particular idea of changing an object's __class__ is exemplified
> there.  http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/68429
> in the online version, but I think you'll find the discussion more
> complete, &c, in the printed version.

Thanks Alex, I have actually subscribed to the book on Safari, but it's
kinda hard to flick through there :D

And thank you to everyone who submitted answers - very much appreciated,

~ Glen





More information about the Python-list mailing list