]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-88943: Improve syntax error for non-ASCII character that follows a numerica...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 2 Oct 2023 14:54:16 +0000 (07:54 -0700)
committerGitHub <noreply@github.com>
Mon, 2 Oct 2023 14:54:16 +0000 (16:54 +0200)
commit9207c870bec173dafd3f2e6c811482c782db034f
treed48539f49805eb013b291202fdda954d6ac779cc
parenta4f186ad4934aad30ea2f54d9f88726e60db1250
[3.12] gh-88943: Improve syntax error for non-ASCII character that follows a numerical literal (GH-109081) (#109090)

gh-88943: Improve syntax error for non-ASCII character that follows a numerical literal (GH-109081)

It now points on the invalid non-ASCII character, not on the valid numerical literal.
(cherry picked from commit b2729e93e9d73503b1fda4ea4fecd77c58909091)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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