]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43833: Emit warnings for numeric literals followed by keyword (GH-25466)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 8 Jun 2021 23:31:10 +0000 (02:31 +0300)
committerGitHub <noreply@github.com>
Tue, 8 Jun 2021 23:31:10 +0000 (16:31 -0700)
commit2ea6d890281c415e0a2f00e63526e592da8ce3d9
tree0aff5648b72d3c7b4557408f8adfce932c59a237
parent3e1c7167d86a2a928cdcb659094aa10bb5550c4c
bpo-43833: Emit warnings for numeric literals followed by keyword (GH-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
Doc/whatsnew/3.10.rst
Lib/test/test_compile.py
Lib/test/test_grammar.py
Misc/NEWS.d/next/Core and Builtins/2021-04-18-18-07-33.bpo-43833.oChkCi.rst [new file with mode: 0644]
Parser/tokenizer.c