[issue40807] CODEOP: Show warnings once during _maybe_compile
Cheryl Sabella
report at bugs.python.org
Thu May 28 09:55:08 EDT 2020
New submission from Cheryl Sabella <cheryl.sabella at 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 <report at bugs.python.org>
<https://bugs.python.org/issue40807>
_______________________________________
More information about the Python-bugs-list
mailing list