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()
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4