[Python-bugs-list] [ python-Bugs-482003 ] dict display broken in pprint

noreply@sourceforge.net noreply@sourceforge.net
Thu, 15 Nov 2001 00:26:24 -0800


Bugs item #482003, was opened at 2001-11-15 00:26
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=482003&group_id=5470

Category: Python Library
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Skip Montanaro (montanaro)
Assigned to: Barry Warsaw (bwarsaw)
Summary: dict display broken in pprint

Initial Comment:
pprint.PrettyPrinter.__format hoses display of multi-
line dicts.  Instead of placing the ":" after the key,
it is placed before the key on continuation lines.

The attached patch fixes this bug and adds a test
case.

Barry, once you're done with this you might want
to reassign it to whoever is doing 2.1.2 in case this
bug is present there as well.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=482003&group_id=5470