Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchakaserhiy-storchaka commented Oct 7, 2025

Revert GH-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.

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
Copy link
MemberAuthor

It is based on the original solution proposed by @tomasr8 in #131927 (comment).

@serhiy-storchakaserhiy-storchaka changed the title gh-139640: Fix swallowing syntax warnings in different modulesgh-139640: Fix swallowing syntax warnings in different modules (silence PEP 765 warnings in PyREPL)Oct 8, 2025
@serhiy-storchakaserhiy-storchaka changed the title gh-139640: Fix swallowing syntax warnings in different modules (silence PEP 765 warnings in PyREPL)gh-139640: Silence PEP 765 warnings in PyREPLOct 14, 2025
@serhiy-storchakaserhiy-storchaka changed the title gh-139640: Silence PEP 765 warnings in PyREPLgh-131927: Silence PEP 765 warnings in PyREPLOct 14, 2025
@serhiy-storchakaserhiy-storchaka deleted the compile-syntax-warnings2 branch October 30, 2025 11:04
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@serhiy-storchaka