[Python-bugs-list] [ python-Bugs-489472 ] pprint produces unreadable dict output

noreply@sourceforge.net noreply@sourceforge.net
Wed, 05 Dec 2001 11:39:50 -0800


Bugs item #489472, was opened at 2001-12-05 10:31
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=489472&group_id=5470

Category: Python Library
Group: Python 2.2
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Jürgen A. Erhard (jae)
>Assigned to: Barry Warsaw (bwarsaw)
Summary: pprint produces unreadable dict output

Initial Comment:
Python 2.2b2 (Debian unstable), this minimal code:

x={'243.220.21': 'cache1.nottingham.ac.uk',
   '186.164.253': 'bw1-164pub253.bluewin.ch'}

import pprint
print pprint.pformat(x)


Output:

{'186.164.253': 'bw1-164pub253.bluewin.ch',
 : '243.220.21''cache1.nottingham.ac.uk'}

Removing the first number off *both* keys ("243." and "186.") and everything's fine.  python 2.1.1 also fine.



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

>Comment By: Barry Warsaw (bwarsaw)
Date: 2001-12-05 11:39

Message:
Logged In: YES 
user_id=12800

This is a duplicate of bug #482003 which I fixed post-2.2b2
(see pprint.py 1.19).  Grabbing assignment, and closing.

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

Comment By: Guido van Rossum (gvanrossum)
Date: 2001-12-05 11:23

Message:
Logged In: YES 
user_id=6380

I can't reproduce this on my Linux system with 2.2b+.

Assigning to Fred for further investigation.

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

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