[issue34857] IDLE: SyntaxWarning not handled properly

2019-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Terry, thanks for the thorough analysis and explanation. -- ___ Python tracker ___ ___ Python-

[issue34857] IDLE: SyntaxWarning not handled properly

2019-08-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Treating a SyntaxWarning as an error is intentional, since 2001 in a Kurt Kaiser patch. IDLE's ModifiedInterpreter subclasses code.InteractiveInterpreter. The subclass .runsource turns a SyntaxWarning into an error, before calling the superclass method, wi

[issue34857] IDLE: SyntaxWarning not handled properly

2019-08-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue34857] IDLE: SyntaxWarning not handled properly

2019-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: See: https://bugs.python.org/msg349375 Because new SyntaxWarnings were added in 3.8, I expect this problem to become more prevalent. Hopefully, this gets fixed for the 3.8 release. -- priority: normal -> high

[issue34857] IDLE: SyntaxWarning not handled properly

2019-08-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue34857] IDLE: SyntaxWarning not handled properly

2019-08-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I cannot reproduce this behavior in 3.7+. `assert (0, 'bad')` does not have any effect. But in 3.6 it outputs a traceback to the stderr. $ ./python -m idlelib Exception in Tkinter callback Traceback (most recent call last): File "/home/serhiy/py/cpython3.

[issue34857] IDLE: SyntaxWarning not handled properly

2019-01-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.7.2, the statement in a file results in the SyntaxError being printed in Shell *before* the restart. It should be after, but before the code object is sent to the restarted execution process. -- ___ Python t

[issue34857] IDLE: SyntaxWarning not handled properly

2018-12-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue34857] IDLE: SyntaxWarning not handled properly

2018-09-30 Thread Terry J. Reedy
New submission from Terry J. Reedy : In 3.6.6, """compile("assert (0, 'bad')", '', 'single')""" in Python or IDLE emits "SyntaxWarning: assertion is always true, perhaps remove parentheses?". In Python, >>> assert (0, 'bad') :1: SyntaxWarning: assertion is always true, perhaps remove parenthes