Skip to content

Instantly share code, notes, and snippets.

@fightingmonk
Created March 29, 2011 19:53
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/893099 to your computer and use it in GitHub Desktop.
Save fightingmonk/893099 to your computer and use it in GitHub Desktop.
class Foo:
__init__(self):
self.bar = 'baz'
foo = Foo()
print getattr(foo, 'bar')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment