8000 How to write literal `{}` · Issue #6 · hishamhm/f-strings · GitHub
[go: up one dir, main page]

Skip to content

How to write literal {} #6

Open

Description

@MarcelRobitaille

How do I go about writing a literal {}? In my conky config, I need a lot of ${not variables}. Is this possible with f-strings? I would love an option where string interpolation must be done like this: %{x}.

Activity

  1. 625781186 commented on Jun 27, 2022

    @625781186

    the same question with you .

  2. dsidirop commented on Oct 28, 2023

    @dsidirop

    It seems someone noticed the shortcoming you noticed and issued a pull request to allow us to use {{ as an escape sequence for { (like C# does it in interpolated strings):

    #8

    I have forked + merged the branch in question to my own fork (until the aforementioned pull request is approved in this repo):

    https://github.com/dsidirop/f-strings

    @625781186 @MarcelRobitaille

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0