Skip to content

Instantly share code, notes, and snippets.

@mjseeley
Last active December 1, 2019 15:24
Show Gist options
  • Save mjseeley/0be766588c10db5ef85b to your computer and use it in GitHub Desktop.
Save mjseeley/0be766588c10db5ef85b to your computer and use it in GitHub Desktop.
Print class elements all pretty like
print '\n'.join("%s: %s" % item for item in vars(x).items()) # replace 'x'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment