◐ Shell
clean mode source ↗

gh-131927: Prevent emitting optimizer warnings twice in the REPL by tomasr8 · Pull Request #131993 · python/cpython

@tomasr8

iritkatriel

iritkatriel

iritkatriel

serhiy-storchaka

serhiy-storchaka

tomasr8 added a commit to tomasr8/cpython that referenced this pull request

Apr 13, 2025
…the REPL (pythonGH-131993)

(cherry picked from commit 3d08c8a)

Co-authored-by: Tomas R. <tomas.roun8@gmail.com>

tomasr8 added a commit to tomasr8/cpython that referenced this pull request

Apr 13, 2025
…the REPL (pythonGH-131993)

(cherry picked from commit 3d08c8a)

Co-authored-by: Tomas R. <tomas.roun8@gmail.com>

tomasr8 added a commit to tomasr8/cpython that referenced this pull request

Apr 13, 2025
…the REPL (pythonGH-131993)

(cherry picked from commit 3d08c8a)

Co-authored-by: Tomas R. <tomas.roun8@gmail.com>

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request

Oct 6, 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.

ast.parse() no longer emits syntax warnings for
return/break/continue in finally (see PEP-765) -- they are only
emitted during compilation.

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request

Oct 6, 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.

ast.parse() no longer emits syntax warnings for
return/break/continue in finally (see PEP-765) -- they are only
emitted during compilation.

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request

Oct 7, 2025
Revert pythonGH-131993. Explicitly silence the duplicated PEP 765 syntax warnings
in the REPL.

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

Co-authored-by: Tomas R. <tomas.roun8@gmail.com>

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request

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 added a commit to serhiy-storchaka/cpython that referenced this pull request

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 added a commit that referenced this pull request

Oct 14, 2025
…9755)

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.

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>

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>

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>

StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request

Dec 6, 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.