Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Sep 7, 2023

It now points on the invalid non-ASCII character, not on the valid numerical literal.

…lows a numerical literal

It now points on the invalid non-ASCII character, not on the valid numerical literal.
@serhiy-storchaka serhiy-storchaka merged commit b2729e9 into python:main Sep 7, 2023
@miss-islington
Copy link
Contributor

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

@serhiy-storchaka serhiy-storchaka deleted the syntax-error-invalid-nonascii-after-numeric-literal branch September 7, 2023 14:00
@miss-islington
Copy link
Contributor

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.11 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker b2729e93e9d73503b1fda4ea4fecd77c58909091 3.11

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 7, 2023
…lows a numerical literal (pythonGH-109081)

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

Co-authored-by: Serhiy Storchaka <[email protected]>
@bedevere-bot
Copy link

GH-109090 is a backport of this pull request to the 3.12 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.12 only security fixes label Sep 7, 2023
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Sep 7, 2023
…hat follows a numerical literal (pythonGH-109081)

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

Co-authored-by: Serhiy Storchaka <[email protected]>
@bedevere-bot
Copy link

GH-109091 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Sep 7, 2023
@serhiy-storchaka serhiy-storchaka removed their assignment Sep 7, 2023
serhiy-storchaka added a commit that referenced this pull request Sep 7, 2023
…llows 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 b2729e9)
Yhg1s pushed a commit that referenced this pull request Oct 2, 2023
…llows 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 b2729e9)

Co-authored-by: Serhiy Storchaka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants