SyntaxWarning
problems are hidden after byte-code compilation
#130378
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
I know that’s because byte-code compilation bypasses the parser. However, the resulting behavior makes it difficult to discover
SyntaxWarning
problems within modules, especially ones in third-party modules for whichpip
hides the compilation output.It would be better if compilation could record the warning in the
.pyc
file such that it gets re-emitted on every load, even though the parser was bypassed.(This was mentioned in #77093 (comment), but it seems nobody took up the suggestion to file this as a separate issue.)
CPython versions tested on:
3.13
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: