FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-123858: Improve Doc: SyntaxWarning is emitted during bytecode generation by bebound · Pull Request #122844 · python/cpython · GitHub

/ cpython Public

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

Merged
ncoghlan merged 7 commits into
python:mainfrom
bebound:syntax-warning
Aug 29, 2025
Merged

gh-123858: Improve Doc: SyntaxWarning is emitted during bytecode generation#122844
ncoghlan merged 7 commits into
python:mainfrom
bebound:syntax-warning

Conversation

bebound commented Aug 9, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

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 commented Aug 9, 2024
edited by ghost
Loading

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

bedevere-app Bot added docs Documentation in the Doc dir skip news awaiting review labels Aug 9, 2024

bebound commented Aug 29, 2024

Copy link
Copy Markdown
Contributor Author

Could someone please help review this PR? Thank you.

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 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
Comment thread Doc/library/exceptions.rst Outdated
bebound and others added 2 commits August 25, 2025 11:35
Comment thread Doc/library/warnings.rst Outdated
bebound and others added 2 commits August 28, 2025 23:21
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>

ncoghlan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM. Thanks for your patience with the review process!

ncoghlan merged commit 5f79067 into python:main Aug 29, 2025
54 checks passed
github-project-automation Bot moved this from Todo to Done in Docs PRs Aug 29, 2025
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 added the 3.15 pre-release feature fixes, bugs and security fixes label Aug 29, 2025

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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 <bebound@gmail.com>
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
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 <bebound@gmail.com>
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>

bedevere-app Bot commented Aug 29, 2025

Copy link
Copy Markdown

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

bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Aug 29, 2025

bedevere-app Bot commented Aug 29, 2025

Copy link
Copy Markdown

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

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
…de generation (gh-122844) (#138244)

Co-authored-by: Hang <bebound@gmail.com>
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
kumaraditya303 pushed a commit to miss-islington/cpython that referenced this pull request Sep 9, 2025
…bytecode generation (pythongh-122844) (python#138244)

Co-authored-by: Hang <bebound@gmail.com>
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
lkollar pushed a commit to lkollar/cpython that referenced this pull request Sep 9, 2025
…e generation (pythongh-122844)

---------

Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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 pre-release feature fixes, 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


Back | FazBrowse Home | New Git URL