This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients cheryl.sabella, miss-islington, rhettinger, serhiy.storchaka, taleinat, terry.reedy
Date 2020-05-28.03:50:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590637816.01.0.54765938773.issue37824@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2020-05-28 03:50:16terry.reedysetrecipients: + terry.reedy, rhettinger, taleinat, serhiy.storchaka, cheryl.sabella, miss-islington
2020-05-28 03:50:16terry.reedysetmessageid: <1590637816.01.0.54765938773.issue37824@roundup.psfhosted.org>
2020-05-28 03:50:16terry.reedylinkissue37824 messages
2020-05-28 03:50:15terry.reedycreate