diff -r 74f1ff61a801 -r 3354c6e9cb95 python.rst --- a/python.rst Fri Feb 10 00:03:06 2012 +0200 +++ b/python.rst Fri Feb 10 00:03:17 2012 +0200 @@ -64,3 +64,19 @@ http://pychecker.sourceforge.net/ +Debugging Python code. +====================== + +Pretty print under Python. +-------------------------- +:: + + import pprint + print(pprint.pformat('string')) + print(pprint.pformat(['1', '2'])) + +See: + + http://docs.python.org/library/pprint.html + Doc page. +