This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients jneb, r.david.murray
Date 2014-03-12.18:01:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1394647313.21.0.776264979516.issue20853@psf.upfronthosting.co.za>
In-reply-to
Content
There is at least one other place (do_break) where this same problem could crop up.  Unittest handles this by having a 'safe_repr' function.  pdb doesn't need the same function unittest does, but it could do something similar, and then use %s and this function in the places where it currently uses repr to print an arbitrary object:

    def safe_repr(obj):
        try:
            return repr(obj)
        except Exception:
            return object.__repr__(obj)
History
Date User Action Args
2014-03-12 18:01:53r.david.murraysetrecipients: + r.david.murray, jneb
2014-03-12 18:01:53r.david.murraysetmessageid: <1394647313.21.0.776264979516.issue20853@psf.upfronthosting.co.za>
2014-03-12 18:01:53r.david.murraylinkissue20853 messages
2014-03-12 18:01:53r.david.murraycreate