Skip to content

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 28, 2025 23:21
Copy link
Contributor

@ncoghlan ncoghlan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for your patience with the review process!

@ncoghlan ncoghlan merged commit 5f79067 into python:main Aug 29, 2025
54 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Aug 29, 2025
@ncoghlan ncoghlan added 3.13 bugs and security fixes 3.14 bugs and security fixes needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Aug 29, 2025
@ncoghlan ncoghlan added the 3.15 new features, bugs and security fixes label Aug 29, 2025
@miss-islington-app
Copy link

Thanks @bebound for the PR, and @ncoghlan for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Thanks @bebound for the PR, and @ncoghlan for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 29, 2025
…e generation (pythongh-122844)

---------
(cherry picked from commit 5f79067)

Co-authored-by: Hang <[email protected]>
Co-authored-by: Alyssa Coghlan <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 29, 2025
…e generation (pythongh-122844)

---------
(cherry picked from commit 5f79067)

Co-authored-by: Hang <[email protected]>
Co-authored-by: Alyssa Coghlan <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Aug 29, 2025

GH-138243 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Aug 29, 2025
@bedevere-app
Copy link

bedevere-app bot commented Aug 29, 2025

GH-138244 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Aug 29, 2025
hugovk pushed a commit that referenced this pull request Aug 29, 2025
kumaraditya303 pushed a commit to miss-islington/cpython that referenced this pull request Sep 9, 2025
lkollar pushed a commit to lkollar/cpython that referenced this pull request Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes 3.14 bugs and security fixes 3.15 new features, bugs and security fixes docs Documentation in the Doc dir skip news
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants