Created
April 1, 2017 02:50
-
-
Save aburgd/bbb66ca0cfa6f4bfe3a4b30a771ccde4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| def nice_print(list_obj): | |
| if !isinstance(list_obj, list): | |
| list_obj = list(list_obj) | |
| printer = PrettyPrinter(indent=4) | |
| printer.pprint(list_obj) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment