Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Rachitlohani/0fbb90ef1305803be0cd to your computer and use it in GitHub Desktop.
Save Rachitlohani/0fbb90ef1305803be0cd to your computer and use it in GitHub Desktop.
python basics
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