Are there any style rules or conventions for uppercase F, R or B in string literals (formatted, raw, bytes)

Viewed 30

The language specification allows an uppercase F"string" and also uppercase R"raw" or B"bytes", but today I saw it for the first time used in an answer.

Not sure why we have both upper and lower case, because "There should be one-- and preferably only one --obvious way to do it".

Are there any rules when to prefer the upper case over the usual f"string", r"raw" or b"bytes"?

0 Answers
Related