Skip to content

Instantly share code, notes, and snippets.

@fightingmonk
Created March 29, 2011 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fightingmonk/893114 to your computer and use it in GitHub Desktop.
Save fightingmonk/893114 to your computer and use it in GitHub Desktop.
class Foo:
__init__(self):
self.bar = 'baz'
foo = Foo()
def thingey(self):
return self.bar
foo.thang = thingey
print foo.thang()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment