]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-88943: Improve syntax error for non-ASCII character that follows a numerica...
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 7 Sep 2023 14:54:07 +0000 (17:54 +0300)
committerGitHub <noreply@github.com>
Thu, 7 Sep 2023 14:54:07 +0000 (14:54 +0000)
commitdae62d456e4f2b956e7e4dd538698bec97aec903
tree3524afad5ec7b2acd7181f9427f2753a38df7268
parentd9d64a4a1397c9e3256984c66a12d92da0dfcd30
[3.11] gh-88943: Improve syntax error for non-ASCII character that follows a numerical literal (GH-109081) (GH-109091)

It now points on the invalid non-ASCII character, not on the valid numerical literal.
(cherry picked from commit b2729e93e9d73503b1fda4ea4fecd77c58909091)
Lib/test/test_grammar.py
Misc/NEWS.d/next/Core and Builtins/2023-09-07-16-05-36.gh-issue-88943.rH_X3W.rst [new file with mode: 0644]
Parser/tokenizer.c