changeset 1210 | ed0ee1b5343c |
parent 1190 | 26fd684df3ee |
child 1211 | 02aabbf45b59 |
--- 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. +