Content-Length: 277953 | pFad | https://github.com/python/cpython/issues/111380

E4 Some SyntaxWarning in strings are shown twice in the presence of SyntaxErrors · Issue #111380 · python/cpython · GitHub
Skip to content

Some SyntaxWarning in strings are shown twice in the presence of SyntaxErrors #111380

@pablogsal

Description

@pablogsal

Example:

❯ ./python.exe  -Wall
Python 3.13.0a1+ (heads/main:78e6d72e38e, Oct 27 2023, 11:50:08) [Clang 15.0.0 (clang-1500.0.40.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> '\e' $
<stdin>:1: SyntaxWarning: invalid escape sequence '\e'
<stdin>:1: SyntaxWarning: invalid escape sequence '\e'
  File "<stdin>", line 1
    '\e' $
         ^
SyntaxError: invalid syntax

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/111380

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy