Improve error message for strings with conflicting prefixes

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Closed

@sobolevn

Description

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

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions