Skip to content

Instantly share code, notes, and snippets.

@kgleeson
Created January 24, 2014 22:46
Show Gist options
  • Save kgleeson/8608372 to your computer and use it in GitHub Desktop.
Save kgleeson/8608372 to your computer and use it in GitHub Desktop.
class Test():
def __init__(self):
self.a = '1'
c = Test()
print "{a}".format(**c)
print "{a}".format(**c.__dict__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment