[issue39228] traceback.FrameSummary does not handle exceptions from `repr()`
Serhiy Storchaka
report at bugs.python.org
Tue Mar 30 17:10:19 EDT 2021
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
__repr__() and repr() can raise exceptions. Silencing arbitrary exception is usually a bad idea. Even correctly raised code can raise exceptions such as MemoryError, RecursionError and KeybordInterrupt.
For this reason I think that the proposed change should not be made.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39228>
_______________________________________
More information about the Python-bugs-list
mailing list