[ python-Bugs-1065456 ] pprint.pformat requires __repr__

SourceForge.net noreply at sourceforge.net
Mon Nov 15 14:53:03 CET 2004


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

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: 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