[Python-bugs-list] [ python-Bugs-489472 ] pprint produces unreadable dict output
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 05 Dec 2001 10:31:29 -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: Open
Resolution: None
Priority: 5
Submitted By: Jürgen A. Erhard (jae)
Assigned to: Nobody/Anonymous (nobody)
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.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=489472&group_id=5470