Skip to content

Instantly share code, notes, and snippets.

@sbc
Created December 25, 2010 20:03
Show Gist options
  • Select an option

  • Save sbc/755027 to your computer and use it in GitHub Desktop.

Select an option

Save sbc/755027 to your computer and use it in GitHub Desktop.
PrettyPrinting objects in Python
import pprint
pp = pprint.PrettyPrinter(indent=4)
pp.pprint(object)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment