[issue37824] IDLE: Handle Shell input warnings properly.
Terry J. Reedy
report at bugs.python.org
Wed May 27 23:50:16 EDT 2020
Terry J. Reedy <tjreedy at udel.edu> added the comment:
codeop._maybe_compile wraps each compile in try ... except SyntaxError. It can later reraise just once. I think it a bug that it is not similarly careful about SyntaxWarning and DeprecationWarning to only emit a particular warning just once.
Cheryl, would you like to open a new issue and submit a patch?
----------
versions: -Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37824>
_______________________________________
More information about the Python-bugs-list
mailing list