New submission from Cheryl Sabella <cheryl.sabe...@gmail.com>:
When calling `codeop._maybe_compile`, `compile` is run three times. If the code being compiled causes a warning message, the warning is generated each time that `compile` is called, thus (possibly) showing the message three times. See msg370163 and that issue for context. ---------- components: Library (Lib) messages: 370208 nosy: cheryl.sabella priority: normal severity: normal status: open title: CODEOP: Show warnings once during _maybe_compile type: enhancement versions: Python 3.10, Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40807> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com