Skip to content

Instantly share code, notes, and snippets.

@codecitizen
Created April 25, 2018 14:54
Show Gist options
  • 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))
@nrajora
Copy link

nrajora commented Aug 6, 2024

Thanks for posting this. It Works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment