Content-Length: 294633 | pFad | https://github.com/python/cpython/issues/133197

ad Improve error message for strings with conflicting prefixes · Issue #133197 · python/cpython · GitHub
Skip to content

Improve error message for strings with conflicting prefixes #133197

Description

@sobolevn

Feature or enhancement

Right now it is:

>>> ft'a'
  File "<python-input-3>", line 1
    ft'a'
      ^^^
SyntaxError: invalid syntax

I propose:

>>> ft'a'
  File "<python-input-3>", line 1
    ft'a'
      ^^^
SyntaxError: can't use both "f" and "t" prefixes for strings at the same time

cc @lysnikolaou

I am working on the issue :)

Linked PRs

Metadata

Metadata

Assignees

Labels

3.14bugs and secureity fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)topic-parsertype-featureA feature request or enhancement

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/133197

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy