[issue37022] pdb: do_p and do_pp swallow exceptions from __repr__

Rémi Lapeyre report at bugs.python.org
Fri May 24 11:10:12 EDT 2019


Rémi Lapeyre <remi.lapeyre at henki.fr> added the comment:

This part of the code is already used in three places and your patch would add two occurrences of of it, I think it would be great to put the part that print the exception in a private method, to avoid duplicating it all over the place.

Doing this seems small enough to me that I think it could be done in the same PR to avoid the overhead of having two separates PRs.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37022>
_______________________________________


More information about the Python-bugs-list mailing list