]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132449: Improve syntax error messages for keywords with typos (#132450)
authorPablo Galindo Salgado <Pablogsal@gmail.com>
Tue, 22 Apr 2025 09:01:55 +0000 (10:01 +0100)
committerGitHub <noreply@github.com>
Tue, 22 Apr 2025 09:01:55 +0000 (11:01 +0200)
commitbf3a0a1c0f2f63867c537d80cc7163ea8426bf2a
tree19e3b40336cea8051298d9e9ee532a27c07162ef
parent3cfab449ab1e3c1472d2a33dc3fae3dc06c39f7b
gh-132449: Improve syntax error messages for keywords with typos (#132450)

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
12 files changed:
Grammar/python.gram
Include/cpython/pyerrors.h
Lib/codeop.py
Lib/test/test_exceptions.py
Lib/test/test_syntax.py
Lib/traceback.py
Misc/NEWS.d/next/Core_and_Builtins/2025-04-19-22-59-24.gh-issue-132449.xjdw4p.rst [new file with mode: 0644]
Objects/exceptions.c
Parser/action_helpers.c
Parser/parser.c
Parser/pegen.c
Parser/pegen.h