New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:
DeprecationWarning at compile time is output multiple times to the stderr (on console from which IDLE was ran), but not to IDLE Shell window. For example, when enter '\e': $ ./python -m idlelib Warning (from warnings module): File "<pyshell#0>", line 1 '\e' DeprecationWarning: invalid escape sequence \e >>> Warning (from warnings module): File "<pyshell#0>", line 1 '\e' DeprecationWarning: invalid escape sequence \e >>> Warning (from warnings module): File "<pyshell#0>", line 1 '\e' DeprecationWarning: invalid escape sequence \e And when close IDLE, additional output is printed in 3.8+: >>> Exception ignored in: <idlelib.run.PseudoInputFile object at 0x7f9e3b4a15a0> Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/idlelib/run.py", line 488, in close File "/home/serhiy/py/cpython/Lib/idlelib/pyshell.py", line 1019, in close File "/home/serhiy/py/cpython/Lib/idlelib/editor.py", line 1058, in close File "/home/serhiy/py/cpython/Lib/idlelib/outwin.py", line 94, in maybesave File "/home/serhiy/py/cpython/Lib/idlelib/editor.py", line 991, in get_saved AttributeError: 'NoneType' object has no attribute 'get_saved' ---------- assignee: terry.reedy components: IDLE messages: 349396 nosy: serhiy.storchaka, terry.reedy priority: normal severity: normal status: open title: IDLE: DeprecationWarning not handled properly type: behavior versions: Python 3.7, Python 3.8, Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37824> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com