3 ms·
> And f-strings, unlike JavaScript's template strings, are not function calls. IIRC, they're syntactic sugar over "string".format(locals())
by Izkata 3y ago
> And f-strings, unlike JavaScript's template strings, are not function calls.
IIRC, they're syntactic sugar over "string".format(locals())
- raziel2p 3y agoThey're really not, the internals are different, many features were added. https://docs.python.org/3/library/string.html#format-string-syntax https://docs.python.org/3/library/string.html#format-string-... https://docs.python.org/3/reference/lexical_analysis.html#f-strings https://docs.python.org/3/reference/lexical_analysis.html#f-...