FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.13] gh-131927: Prevent emitting optimizer warnings twice in the REPL (GH-131993) by tomasr8 · Pull Request #132463 · python/cpython · GitHub

/ cpython Public

[3.13] gh-131927: Prevent emitting optimizer warnings twice in the REPL (GH-131993) - #132463

Merged
serhiy-storchaka merged 2 commits into
python:3.13from
tomasr8:backport-3d08c8a-3.13
Apr 13, 2025
Merged

[3.13] gh-131927: Prevent emitting optimizer warnings twice in the REPL (GH-131993)#132463
serhiy-storchaka merged 2 commits into
python:3.13from
tomasr8:backport-3d08c8a-3.13

Conversation

tomasr8 commented Apr 13, 2025
edited by picnixz
Loading

Copy link
Copy Markdown
Member

…the REPL (pythonGH-131993)

(cherry picked from commit 3d08c8a)

Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
picnixz changed the title [3.13] gh-131927: Prevent emitting optimizer warnings twice in the RE… [3.13] gh-131927: Prevent emitting optimizer warnings twice in the REPL Apr 13, 2025
Comment thread Python/compile.c
}
if (PyErr_WarnExplicitObject(PyExc_SyntaxWarning, msg, c->c_filename,
loc.lineno, NULL, NULL) < 0)
if (_PyErr_WarnExplicitObjectWithContext(PyExc_SyntaxWarning, msg,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Just a note, 3.13 uses compiler_warn instead of _PyErr_EmitSyntaxWarning to emit warnings.

picnixz changed the title [3.13] gh-131927: Prevent emitting optimizer warnings twice in the REPL [3.13] gh-131927: Prevent emitting optimizer warnings twice in the REPL (#131993) Apr 13, 2025
picnixz changed the title [3.13] gh-131927: Prevent emitting optimizer warnings twice in the REPL (#131993) [3.13] gh-131927: Prevent emitting optimizer warnings twice in the REPL (GH-131993) Apr 13, 2025
serhiy-storchaka enabled auto-merge (squash) April 13, 2025 08:21
serhiy-storchaka merged commit 4ff5d88 into python:3.13 Apr 13, 2025
tomasr8 deleted the backport-3d08c8a-3.13 branch April 13, 2025 09:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL