Skip to content

Instantly share code, notes, and snippets.

@yannisxu
Created May 13, 2013 07:33
Show Gist options
  • Save yannisxu/5566708 to your computer and use it in GitHub Desktop.
Save yannisxu/5566708 to your computer and use it in GitHub Desktop.
python view all attr
for attr in dir(obj):
print "obj.%s = %s" % (attr, getattr(obj, attr))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment