[issue39228] traceback.FrameSummary does not handle exceptions from `repr()`

Martin report at bugs.python.org
Mon Nov 8 02:23:59 EST 2021


Martin <martin.schroeder at nerdluecht.de> added the comment:

I submitted a pull request for the related issue43656:

https://github.com/python/cpython/pull/29299

It introduces a format_locals parameter that enables the customized formatting of a FrameSummary.

This way, a user of traceback could provide a function that handles exceptions within __repr__ if necessary.

----------

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


More information about the Python-bugs-list mailing list