Re:Python 3's F-Strings: An Improved String Formatting Syntax
by dagenix on Wednesday January 20, 2021 @11:09PM
(#25855280)
As the sibling comment points out, it actually doesn't work that way. The first parameter is only treated as a format string _if_ there are arguments. If not, it is treated as a literal string: https://github.com/python/cpython/blob/dcea78ff53d02733ac598...
[ Parent
| on HN ]