Bugs item #1065456, was opened at 2004-11-12 16:36 Message generated for change (Comment added) made by cmoad 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: Charles Moad (cmoad) Date: 2005-08-08 14: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 08: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 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com