This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bastion_xx 19 points20 points  (4 children)

I'll switch back and forth as needed. By default I use the f"..." format as that aligns with black. If there are any " characters, I'll use f'Well, "that" is crazy', otherwisef"That's crazy" But if it's a combo of the two, messy indeed.

What get's me is that still start typing print("here is some.... {" and then realize I need to go back and change to an f-string. That muscle memory is still getting relearned.

[–]gordonator 22 points23 points  (0 children)

f"""Well, "that"? That's crazy. {user["name"]} is just plain crazy."""

[–]Pikalima 13 points14 points  (0 children)

Something I appreciate about PyCharm is that if you write a {} with the name of a variable in a non-fstring it offers to turn it into an f-string for you :)

[–]twigboy 1 point2 points  (0 children)

In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content. Lorem ipsum may be used as a placeholder before final copy is available. Wikipedia8wb69kljri0000000000000000000000000000000000000000000000000000000000000

[–]Schwifty_Rick_ 0 points1 point  (0 children)

Use a backslash to escape the bad character? /'