Created
April 25, 2018 14:54
-
-
Save codecitizen/34098fbca54abedfae9f415612558599 to your computer and use it in GitHub Desktop.
Pretty print a python objects members.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Thanks for posting this. It Works!