Kevin Little a écrit :

Oops, sorry, forgot to answer

> '''
> I want to dynamically add or replace bound methods in a class. 
(snip)
> Is there a more pythonic way that's as straight forward?

What's wrong with:

class Foo:
   pass

def method(self):
   print "%s" % self

f = Foo()
Foo.method = method
f.method()
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to