Skip to content

Instantly share code, notes, and snippets.

@skimbrel
Created December 4, 2012 21:18
Show Gist options
  • Save skimbrel/4208780 to your computer and use it in GitHub Desktop.
Save skimbrel/4208780 to your computer and use it in GitHub Desktop.
# 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