object changing itself to another object

Alex Martelli aleax at aleax.it
Thu Sep 26 10:03:18 EDT 2002


Glen Murphy wrote:

>> 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

Yep -- I love Safari for certain things, but I *still* stock up on
the paper versions too:-).


Alex




More information about the Python-list mailing list