]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-138857: Improve error message for `case` outside of `match` (#138858)
authorsobolevn <mail@sobolevn.me>
Fri, 24 Oct 2025 09:20:54 +0000 (12:20 +0300)
committerGitHub <noreply@github.com>
Fri, 24 Oct 2025 09:20:54 +0000 (11:20 +0200)
commit92c0c45563bdc041b2089444897cfe60711a6eff
treeac7e6dc34558dc5340ec7aba110b9f5b6b98878d
parent161b3064efdafd2008378a88a8009897df1b58d2
gh-138857: Improve error message for `case` outside of `match` (#138858)

* gh-138857: Improve error message for `case` outside of `match`

---------

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Grammar/python.gram
Lib/test/test_syntax.py
Misc/NEWS.d/next/Core_and_Builtins/2025-09-13-01-23-25.gh-issue-138857.YQ5gdc.rst [new file with mode: 0644]
Parser/parser.c