GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Error in description of f-string "=" functionality · Issue #125496 · python/cpython

Error in description of f-string "=" functionality #125496

New issue
Copy link
New issue
Copy link
Closed
Closed
Error in description of f-string "=" functionality#125496
Copy link
Assignees
ericvsmith
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)

Description

@ericvsmith
ericvsmith
opened on Oct 15, 2024
Issue body actions

https://docs.python.org/3/reference/lexical_analysis.html#f-strings

The description of the "=" functionality says:

By default, the '=' causes the repr() of the expression to be provided, unless there is a format specified. When a format is specified it defaults to the str() of the expression unless a conversion '!r' is declared.

But that's not correct. If a format is specified, it uses value.__format__(format_spec).

I'll produce a patch.

Activity

  1. ericvsmith
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Oct 15, 2024
  2. ericvsmith
    self-assigned this
    on Oct 15, 2024
  3. willingc
    added this to docs issueson Oct 31, 2024
  4. github-project-automation
    moved this to Todo in docs issueson Oct 31, 2024
  5. StanFromIreland commented on Oct 2, 2025

    @StanFromIreland
    StanFromIreland
    on Oct 2, 2025
    Member
    More actions

    cc @encukou (as #137469 author)

  6. AA-Turner
    added
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    on Oct 4, 2025
  7. encukou commented on Oct 7, 2025

    @encukou
    encukou
    on Oct 7, 2025
    Member
    More actions

    I'll produce a patch.

    Would you like to review #137469 instead? :)

  8. ericvsmith commented on Oct 8, 2025

    @ericvsmith
    ericvsmith
    on Oct 8, 2025
    MemberAuthor
    More actions

    I think #137469 addresses this issue. I'm going to close this, and make a note over there.

  9. ericvsmith
    closed this as completedon Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @ericvsmith
    ericvsmith

Labels

docsDocumentation in the Doc dirDocumentation in the Doc dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)

Projects

  • docs issues
    Status
    Todo
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.