[issue22836] Broken "Exception ignored in:" message on exceptions in __repr__

Serhiy Storchaka report at bugs.python.org
Wed Feb 17 06:47:07 EST 2016


Serhiy Storchaka added the comment:

This may be a part of more general issue. Should repr() fail at all? Wouldn't be better to fall back to the default __repr__ instead? repr() is typically used for debugging. Failing repr() can be a part of larger __repr__, thus raising an exception in subobject's repr() leads to the loss of information about full object.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22836>
_______________________________________


More information about the Python-bugs-list mailing list