FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

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

Repository navigation

Improve error message for strings with conflicting prefixes #133197

Closed

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

Activity

  1. self-assigned this
    on Apr 30, 2025
  2. added a commit that references this issue on Apr 30, 2025
  3. changed the title [-]Improve error message for strings that use both `f` and `t` prefix at the same time[/-] [+]Improve error message for strings with conflicting prefixes[/+] on Apr 30, 2025
  4. terryjreedy commented on Apr 30, 2025

    Member

    More tersely, "f" and "t" prefixes are incompatible.

  5. sobolevn commented on Apr 30, 2025

    MemberAuthor

    I can change the one I commited when working on new ones. I like your suggestion! Thanks!

  6. added 2 commits that reference this issue on May 1, 2025
  7. added a commit that references this issue on Jul 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.14bugs and security 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


    Back | FazBrowse Home | New Git URL