bpo-43833: Emit warnings for numeric literals followed by keyword by serhiy-storchaka · Pull Request #25466 · python/cpython

serhiy-storchaka · GitHub

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.

miss-islington

pushed a commit to miss-islington/cpython that referenced this pull request

Jun 8, 2021

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

miss-islington

added a commit that referenced this pull request

Jun 8, 2021

…-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]> Closed

sco1

mannequin mentioned this pull request

Apr 25, 2022

Closed