Chaning instance methods

Jody Winston jody at ldgo.columbia.edu
Thu Apr 8 10:19:36 EDT 1999


What I was trying to do was to dynamically change the runtime behavior of an
object instance by loading the new methods from a permanent store.  Since this
wasn't easy to do, I now just save off all of the attributes, kill the 
old object, create a new object, and restore the attributes.  

This works, but it doesn't seem to be as elegant as having the ability
to replace methods.

-- 
Jody Winston
Manager SeisRes
Lamont-Doherty Earth Observatory
RT 9W, Palisades, NY 10964
jody at ldeo.columbia.edu, 914 365 8526, Fax 914 359 1631 

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.






More information about the Python-list mailing list