[issue43656] StackSummary.format fails if str(value) fails
Andrei Kulakov
report at bugs.python.org
Sun May 9 01:39:56 EDT 2021
Andrei Kulakov <andrei.avk at gmail.com> added the comment:
@Martin it's more that logic in a function may raise exception and it will be handled somewhere upstream, but a repr should just give you a simple representation of an object, it would make no sense for upstream logic to be "object repr failed with such exception, instead we should do this now". It's hard to imagine when this would make sense.
----------
nosy: +andrei.avk
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43656>
_______________________________________
More information about the Python-bugs-list
mailing list