]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-131927: Do not emit PEP 765 warnings in ast.parse() (GH-139642)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 30 Oct 2025 11:00:42 +0000 (13:00 +0200)
committerGitHub <noreply@github.com>
Thu, 30 Oct 2025 11:00:42 +0000 (13:00 +0200)
commitad0a3f733b23e7fc69aff13055c7fac8ab9dcd66
tree58deaefb6bf095273d1748d806f1cf6332b22d95
parent2a904263aa0bc7c4a13beb4d8baa8cbc060a45ee
gh-131927: Do not emit PEP 765 warnings in ast.parse() (GH-139642)

ast.parse() no longer emits syntax warnings for
return/break/continue in finally (see PEP-765) -- they are only
emitted during compilation.
Include/internal/pycore_compile.h
Lib/test/test_ast/test_ast.py
Lib/test/test_compile.py
Lib/test/test_pyrepl/test_interact.py
Misc/NEWS.d/next/Core_and_Builtins/2025-10-06-10-03-37.gh-issue-139640.gY5oTb2.rst [new file with mode: 0644]
Python/ast_preprocess.c
Python/compile.c