Skip to content

Instantly share code, notes, and snippets.

@aburgd
Created April 1, 2017 02:50
Show Gist options
  • Select an option

  • Save aburgd/bbb66ca0cfa6f4bfe3a4b30a771ccde4 to your computer and use it in GitHub Desktop.

Select an option

Save aburgd/bbb66ca0cfa6f4bfe3a4b30a771ccde4 to your computer and use it in GitHub Desktop.
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