Skip to content

gh-123858: Improve Doc: SyntaxWarning is emitted during bytecode generation #122844

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

bebound
Copy link
Contributor

@bebound bebound commented Aug 9, 2024

I'm working on eliminating the SyntaxWarning. It's strange that this error only shows up once. After some research, I found that:

A SyntaxWarning is emitted when the compiler compiles Python sources to bytecode. (Ref: #79031 (comment))

However, this isn't mentioned in the documentation. I noticed other warnings have descriptions like "ignored by default." Adding this information could help reduce confusion.


📚 Documentation preview 📚: https://cpython-previews--122844.org.readthedocs.build/

@ghost
Copy link

ghost commented Aug 9, 2024

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-app bedevere-app bot added docs Documentation in the Doc dir skip news awaiting review labels Aug 9, 2024
@bebound
Copy link
Contributor Author

bebound commented Aug 29, 2024

Could someone please help review this PR? Thank you.

@bebound bebound changed the title Docs: SyntaxWarning is emitted during bytecode generation GH-123858: Improve Doc: SyntaxWarning is emitted during bytecode generation Sep 9, 2024
@bebound bebound changed the title GH-123858: Improve Doc: SyntaxWarning is emitted during bytecode generation gh-123858: Improve Doc: SyntaxWarning is emitted during bytecode generation Sep 10, 2024
bebound and others added 2 commits August 25, 2025 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review docs Documentation in the Doc dir skip news
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

3 participants