[issue34779] IDLE internals show up in tracebacks when returning objects that cannot be `repr`ed
ppperry
report at bugs.python.org
Sun Sep 23 14:39:03 EDT 2018
New submission from ppperry <mapreader at olum.org>:
>>> class NoRepr:
def __repr__(self):
raise ValueError
>>> NoRepr()
Traceback (most recent call last):
File "<pyshell#44>", line 1, in <module>
NoRepr()
File "C:\Program Files\Python37\lib\idlelib\rpc.py", line 617, in displayhook
text = repr(value)
File "<pyshell#43>", line 3, in __repr__
raise ValueError
ValueError
What should happen in this case isn't exactly clear, but the current traceback is wrong in multiple ways.
----------
assignee: terry.reedy
components: IDLE
messages: 326172
nosy: ppperry, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE internals show up in tracebacks when returning objects that cannot be `repr`ed
versions: Python 3.6, Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34779>
_______________________________________
More information about the Python-bugs-list
mailing list