WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Using strings inside f-string #125

@mtshiba

Description

@mtshiba

From: mtshiba/pylyzer#115

Starting with Python 3.12, the use of strings within f-strings is permitted.

Reference

However, the current parser implementation does not seem to allow the use of same quoting type strings within f-strings.

f"{"hello"}"

results in the following parsing error:

invalid syntax. Got unexpected token 'hello' at row 1 col 5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions