How do I make pprint do this

Robert Kern robert.kern at gmail.com
Wed May 20 18:23:09 CEST 2009


On 2009-05-20 10:37, skip at pobox.com wrote:
>      >>  I cannot get pprint to format output how I would like. pydb does. I
>      >>  tried grepping the source but still couldn't grok it.
>
> That's not the way pprint works.  You have no control over how it arranges
> its output.  If you need something more flexible you'll have to roll your
> own.

Or use Armin Ronacher's excellent pretty.py:

   http://dev.pocoo.org/hg/sandbox/file/tip/pretty

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco




More information about the Python-list mailing list