gh-131927: Prevent emitting optimizer warnings twice in the REPL by tomasr8 · Pull Request #131993 · python/cpython
tomasr8 added a commit to tomasr8/cpython that referenced this pull request
…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
…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
…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
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
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
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
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
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
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request
…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
…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
…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
…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
…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
…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.