Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

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

Bytecode for empty f-string != bytecode for empty normal string #99606

Closed
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error
@thatbirdguythatuknownot

Description

Bug report

The bytecode for an empty f-string does not match the bytecode for an empty normal string.

importdisdis.dis('""')dis.dis('f""')

Output:

0           0 RESUME                   01           2 LOAD_CONST               0 ('')            4 RETURN_VALUE0           0 RESUME                   01           2 BUILD_STRING             0            4 RETURN_VALUE

Environment

  • CPython versions tested on:
    3.11, 3.12.0a2

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp