KEMBAR78
gh-139640: Fix swallowing syntax warnings in different modules (restore duplicated PEP 765 warnings) by serhiy-storchaka · Pull Request #139755 · python/cpython · GitHub
Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Oct 8, 2025

Revert GH-131993.

Fix swallowing some syntax warnings in different modules if they accidentally have the same message and are emitted from the same line.

@serhiy-storchaka
Copy link
Member Author

This is a third alternative -- just restore the double PEP 765 warnings. Temporary, I hope.

@serhiy-storchaka serhiy-storchaka changed the title gh-139640: Fix swallowing syntax warnings in different modules gh-139640: Fix swallowing syntax warnings in different modules (restore duplicated PEP 765 warnings) Oct 8, 2025
Revert pythonGH-131993.

Fix swallowing some syntax warnings in different modules if they accidentally
have the same message and are emitted from the same line.
@serhiy-storchaka serhiy-storchaka force-pushed the compile-syntax-warnings3 branch from 6cb99f0 to c12e7ec Compare October 8, 2025 08:28
@serhiy-storchaka serhiy-storchaka merged commit 279db6b into python:main Oct 14, 2025
45 checks passed
@serhiy-storchaka serhiy-storchaka deleted the compile-syntax-warnings3 branch October 14, 2025 14:48
@serhiy-storchaka serhiy-storchaka added the needs backport to 3.14 bugs and security fixes label Oct 14, 2025
@miss-islington-app
Copy link

Thanks @serhiy-storchaka for the PR 🌮🎉.. 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 Oct 14, 2025
…ythonGH-139755)

Revert pythonGH-131993.

Fix swallowing some syntax warnings in different modules if they accidentally
have the same message and are emitted from the same line.
(cherry picked from commit 279db6b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Oct 14, 2025

GH-140117 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 Oct 14, 2025
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Oct 14, 2025
…odules (pythonGH-139755)

Revert pythonGH-131993.

Fix swallowing some syntax warnings in different modules if they accidentally
have the same message and are emitted from the same line.
(cherry picked from commit 279db6b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Oct 14, 2025

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

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Oct 14, 2025
…odules (pythonGH-139755)

Revert pythonGH-131993.

Fix swallowing some syntax warnings in different modules if they accidentally
have the same message and are emitted from the same line.

Fix duplicated warnings in the "finally" block.

(cherry picked from commit 279db6b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this pull request Oct 14, 2025
…GH-139755) (GH-140119)

Revert GH-131993.

Fix swallowing some syntax warnings in different modules if they accidentally
have the same message and are emitted from the same line.

Fix duplicated warnings in the "finally" block.

(cherry picked from commit 279db6b)
serhiy-storchaka added a commit that referenced this pull request Oct 14, 2025
…GH-139755) (GH-140117)

Revert GH-131993.

Fix swallowing some syntax warnings in different modules if they accidentally
have the same message and are emitted from the same line.

Fix duplicated warnings in the "finally" block.

(cherry picked from commit 279db6b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>

* Update 2025-10-06-10-03-37.gh-issue-139640.gY5oTb.rst

---------

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant