Pretty print under Python.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 07 Feb 2012 11:04:34 +0200
changeset 1210 ed0ee1b5343c
parent 1209 bb6eaf58a856
child 1211 02aabbf45b59
Pretty print under Python.
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.
+