replace a method in class: how?

nate n8pease at
Mon Jun 26 19:40:55 EDT 2006

I don't know a ton about this, but it seems to work if you use:
This.update = another_update
(instead of t.update = another_update)
after saying This.update = another_update, if you enter This.update, it
says <unbound method This.another_update>, (it's unbound)
but if you call
it will print:
another 5

More information about the Python-list mailing list