Visitar URL original
[3.10] bpo-43833: Emit warnings for numeric literals followed by keyword (GH-25466) by miss-islington · Pull Request #26614 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20210609011832/https://github.com/python/cpython/pull/26614
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-43833: Emit warnings for numeric literals followed by keyword (GH-25466) #26614

Merged
merged 1 commit into from Jun 8, 2021

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 8, 2021 •

Emit a deprecation warning if the numeric literal is immediately followed by
one of keywords: and, else, for, if, in, is, or. Raise a syntax error with
more informative message if it is immediately followed by other keyword or
identifier.

Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit 2ea6d89)

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

https://bugs.python.org/issue43833

…-25466)

Emit a deprecation warning if the numeric literal is immediately followed by
one of keywords: and, else, for, if, in, is, or. Raise a syntax error with
more informative message if it is immediately followed by other keyword or
identifier.

Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit 2ea6d890281c415e0a2f00e63526e592da8ce3d9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@miss-islington
Copy link
Contributor Author

@miss-islington miss-islington commented Jun 8, 2021

@serhiy-storchaka: Status check is done, and it's a success ✅ .

@miss-islington
Copy link
Contributor Author

@miss-islington miss-islington commented Jun 8, 2021

@serhiy-storchaka: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit eeefa7f into python:3.10 Jun 8, 2021
14 checks passed
14 checks passed
@github-actions
Docs
Details
@github-actions
Check for source changes
Details
@github-actions
Check if the ABI has changed
Details
@github-actions
Check if generated files are up to date
Details
@github-actions
Windows (x86)
Details
@github-actions
Windows (x64)
Details
@github-actions
macOS
Details
@github-actions
Ubuntu
Details
@github-actions
Ubuntu SSL tests with OpenSSL
Details
Azure Pipelines PR #20210608.61 succeeded
Details
@travis-ci
Travis CI - Pull Request Build Passed
Details
@bedevere-bot
bedevere/issue-number Issue number 43833 found
Details
@bedevere-bot
bedevere/maintenance-branch-pr Valid maintenance branch PR title.
@bedevere-bot
bedevere/news News entry found in Misc/NEWS.d
@miss-islington miss-islington deleted the miss-islington:backport-2ea6d89-3.10 branch Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants