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

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


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

Hi Daniel, this is indeed unexpected, I don't see how to have a better patch since the fact that _getval() raise an exception is used in do_source() and do_whatis().

Could you convert your patch as a PR and add a test?

----------
nosy: +remi.lapeyre

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


More information about the Python-bugs-list mailing list