Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.10] bpo-46820: Fix a SyntaxError in a numeric literal followed by "not in" (GH-31479) #31493

Merged
merged 1 commit into from Feb 22, 2022

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Feb 22, 2022

Fix parsing a numeric literal immediately (without spaces) followed by
"not in" keywords, like in "1not in x". Now the parser only emits
a warning, not a syntax error.
(cherry picked from commit 090e5c4)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

https://bugs.python.org/issue46820

pythonGH-31479)

Fix parsing a numeric literal immediately (without spaces) followed by
"not in" keywords, like in "1not in x". Now the parser only emits
a warning, not a syntax error.
(cherry picked from commit 090e5c4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@serhiy-storchaka serhiy-storchaka merged commit f20ac2e into python:3.10 Feb 22, 2022
@miss-islington miss-islington deleted the backport-090e5c4-3.10 branch February 22, 2022 10:00
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.

None yet

4 participants