F-strings are new in Python 3.6 You may find them easier to compose and to read f"result: {value:{width}.{precision}}". The tradeoffs are localization and security. Python executes f-strings, so they present an additional attack surface: avoid including user-generated data.
@amontalenti , I hope this saves you some time...
F-strings are new in Python 3.6 You may find them easier to compose and to read
f"result: {value:{width}.{precision}}"
. The tradeoffs are localization and security. Python executes f-strings, so they present an additional attack surface: avoid including user-generated data.