Created
December 4, 2012 21:18
-
-
Save skimbrel/4208780 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in some module | |
class Foo(object): | |
pass | |
# somewhere else | |
from some_module import Foo | |
def frobnosticate(self, widget): | |
print widget | |
Foo.frobnosticate = frobnosticate | |
def attach_frobnosticator(klass): | |
klass.frobnosticate = frobnosticate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment