Skip to content

Instantly share code, notes, and snippets.

@codecitizen
Created April 25, 2018 14:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecitizen/34098fbca54abedfae9f415612558599 to your computer and use it in GitHub Desktop.
Save codecitizen/34098fbca54abedfae9f415612558599 to your computer and use it in GitHub Desktop.
Pretty print a python objects members.
import pprint
import inspect
pp = pprint.PrettyPrinter(depth=6)
pp.pprint(inspect.getmembers(myObject))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment