Terry J. Reedy <tjre...@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 <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

Reply via email to