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 <>
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):
            return repr(obj)
        except Exception:
            return object.__repr__(obj)
Date User Action Args
2014-03-12 18:01:53r.david.murraysetrecipients: + r.david.murray, jneb
2014-03-12 18:01:53r.david.murraysetmessageid: <>
2014-03-12 18:01:53r.david.murraylinkissue20853 messages
2014-03-12 18:01:53r.david.murraycreate