[3.10] bpo-43833: Emit warnings for numeric literals followed by keyword (GH-25466) by miss-islington · Pull Request #26614 · python/cpython

miss-islington · GitHub

…thonGH-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

2ea6d89

) Co-authored-by: Serhiy Storchaka <[email protected]>