# HG changeset patch # User Oleksandr Gavenko # Date 1328605474 -7200 # Node ID ed0ee1b5343cc656a52b8d6ee09c0cc4754cc9cc # Parent bb6eaf58a85698efefe3d30877842b0b57a6444b Pretty print under Python. diff -r bb6eaf58a856 -r ed0ee1b5343c python.rst --- a/python.rst Tue Feb 07 10:39:24 2012 +0200 +++ b/python.rst Tue Feb 07 11:04:34 2012 +0200 @@ -64,3 +64,17 @@ http://pychecker.sourceforge.net/ +Debugging Python code. +====================== + +Pretty print under Python. +-------------------------- +:: + + import pprint + print(pprint.pformat('string')) + print(pprint.pformat(['1', '2'])) + + http://docs.python.org/library/pprint.html + Doc page. +