New submission from ppperry <maprea...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue34779>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to