Skip to content

Conversation

blaisep
Copy link

@blaisep blaisep commented Sep 6, 2019

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants