[ python-Bugs-1065456 ] pprint.pformat requires __repr__
SourceForge.net
noreply at sourceforge.net
Tue Aug 9 20:30:59 CEST 2005
Bugs item #1065456, was opened at 2004-11-12 22:36
Message generated for change (Comment added) made by doerwalter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1065456&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Dave Kuhlman (dkuhlman)
Assigned to: Nobody/Anonymous (nobody)
Summary: pprint.pformat requires __repr__
Initial Comment:
Not having a __repr__ attribute seem to cause problems for:
pprint.pformat
in Python 2.4. This problem goes away when I use a Zope instance for
Python 2.3.
The error message is generated when I try to access a private
workspace in the CPS interface.
I inserted a bit of debugging code, and I've attached a file that
contains the debugging print-out of the data that caused the error
and also the traceback.
I'm using:
CPS-3.2.1
Zope-2.7.3-0
Python 2.4b2 built from source
on Linux.
I've attached a file containing a bit of debugging information and also
the traceback.
Dave
----------------------------------------------------------------------
>Comment By: Walter Dörwald (doerwalter)
Date: 2005-08-09 20:30
Message:
Logged In: YES
user_id=89016
Which version of Python are you using? Can you post a stack
trace?
----------------------------------------------------------------------
Comment By: Charles Moad (cmoad)
Date: 2005-08-08 21:08
Message:
Logged In: YES
user_id=705459
This problem affects matplotlib still. Here is a short example:
import pprint
from matplotlib.transforms import unit_bbox
b = unit_bbox()
pprint.pformat(b)
----------------------------------------------------------------------
Comment By: Walter Dörwald (doerwalter)
Date: 2004-11-15 14:53
Message:
Logged In: YES
user_id=89016
This should be fixed in pprint.py 1.31 in current CVS. Thanks
for the report.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1065456&group_id=5470
More information about the Python-bugs-list
mailing list