You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SyntaxWarning appears only once during the pyc compilation, but I can't find this information in the documentation.
This is quite confusing for anyone trying to fix a SyntaxWarning. I noticed other warnings have descriptions like "ignored by default." Adding this information could help reduce confusion.
Activity
gh-123858: Improve Doc: SyntaxWarning is emitted during bytecode gene…
pythongh-123858: Improve Doc: SyntaxWarning is emitted during bytecod…
pythongh-123858: Improve Doc: SyntaxWarning is emitted during bytecod…
ncoghlan commentedon Aug 29, 2025
Backports are still pending, but I'm happy to consider this resolved. Thanks for the PR @bebound!
[3.13] gh-123858: Improve Doc: SyntaxWarning is emitted during byteco…
[3.14] gh-123858: Improve Doc: SyntaxWarning is emitted during byteco…
[3.14] pythongh-123858: Improve Doc: SyntaxWarning is emitted during …
pythongh-123858: Improve Doc: SyntaxWarning is emitted during bytecod…