GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-123858: Improve Doc: SyntaxWarning is emitted during bytecode generation by bebound · Pull Request #122844 · python/cpython

Conversation

@bebound

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

Uh oh!

There was an error while loading. Please reload this page.

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/

  • Issue: Improve document for SyntaxWarning #123858

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ghost

ghost commented Aug 9, 2024 •
edited by ghost
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.
CLA signed

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news awaiting review labels Aug 9, 2024
@bebound
bebound force-pushed the syntax-warning branch from 77ee6ca to b95d4da Compare August 9, 2024 03:02
@bebound
Init
1947df0
@bebound
bebound force-pushed the syntax-warning branch from b95d4da to 1947df0 Compare August 9, 2024 03:05
@bebound
Merge branch 'main' into syntax-warning
beeebed
@bebound

bebound commented Aug 29, 2024

Copy link
Copy Markdown
Contributor Author

Could someone please help review this PR? Thank you.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bebound bebound mentioned this pull request Sep 9, 2024
Improve document for SyntaxWarning #123858
Closed
@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
Merge branch 'main' into syntax-warning
1a7a28d
iritkatriel
iritkatriel reviewed Sep 12, 2024
View reviewed changes
Comment thread Doc/library/exceptions.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

bebound and others added 2 commits August 25, 2025 11:35
@bebound @ncoghlan
Update Doc/library/exceptions.rst
2da4263
Co-authored-by: Alyssa Coghlan <[email protected]>
@bebound
Merge branch 'main' into syntax-warning
9c00bc8
ncoghlan
ncoghlan reviewed Aug 28, 2025
View reviewed changes
Comment thread Doc/library/warnings.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

bebound and others added 2 commits August 28, 2025 23:21
@bebound @ncoghlan
Update Doc/library/warnings.rst
12185bd
Co-authored-by: Alyssa Coghlan <[email protected]>
@bebound
Minor fix
0776052
@bebound
bebound force-pushed the syntax-warning branch from 0776052 to 9c00bc8 Compare August 28, 2025 15:43
ncoghlan
ncoghlan approved these changes Aug 29, 2025
View reviewed changes

@ncoghlan ncoghlan left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this 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!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bebound reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting review labels Aug 29, 2025
@ncoghlan
ncoghlan merged commit 5f79067 into python:main Aug 29, 2025
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Aug 29, 2025
@bedevere-app bedevere-app Bot removed the awaiting merge label Aug 29, 2025
@ncoghlan ncoghlan added 3.13 only security fixes 3.14 bugs and security fixes needs backport to 3.13 only security fixes needs backport to 3.14 bugs and security fixes labels Aug 29, 2025
@ncoghlan ncoghlan added the 3.15 bugs and security fixes label Aug 29, 2025
@miss-islington-app

miss-islington-app Bot commented 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.
🐍🍒⛏🤖

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@miss-islington-app

miss-islington-app Bot commented 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.14.
🐍🍒⛏🤖

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 29, 2025
@bebound @ncoghlan @miss-islington
pythongh-123858: Improve Doc: SyntaxWarning is emitted during bytecod…
9505481
…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
@bebound @ncoghlan @miss-islington
pythongh-123858: Improve Doc: SyntaxWarning is emitted during bytecod…
19176bd
…e generation (pythongh-122844)

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

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

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@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
@miss-islington @bebound @ncoghlan
[3.14] gh-123858: Improve Doc: SyntaxWarning is emitted during byteco…
c35222a
…de generation (gh-122844) (#138244)

Co-authored-by: Hang <[email protected]>
Co-authored-by: Alyssa Coghlan <[email protected]>
kumaraditya303 pushed a commit to miss-islington/cpython that referenced this pull request Sep 9, 2025
@miss-islington @bebound
@ncoghlan @kumaraditya303
[3.14] pythongh-123858: Improve Doc: SyntaxWarning is emitted during …
296b6f5
…bytecode generation (pythongh-122844) (python#138244)

Co-authored-by: Hang <[email protected]>
Co-authored-by: Alyssa Coghlan <[email protected]>
lkollar pushed a commit to lkollar/cpython that referenced this pull request Sep 9, 2025
@bebound @ncoghlan @lkollar
pythongh-123858: Improve Doc: SyntaxWarning is emitted during bytecod…
a2faaa1
…e generation (pythongh-122844)

---------

Co-authored-by: Alyssa Coghlan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@iritkatriel iritkatriel iritkatriel left review comments
@ncoghlan ncoghlan ncoghlan approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

3.13 only security fixes 3.14 bugs and security fixes 3.15 bugs and security fixes docs Documentation in the Doc dir skip news

Projects

Docs PRs
Status: Done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@bebound @ncoghlan @iritkatriel
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.