quantifiedcode / python-anti-patterns

An open collection of Python anti-patterns and worst practices.
https://quantifiedcode.github.io/python-anti-patterns
Other
1.71k stars 249 forks source link

f-string substitutions #126

Closed bgerrity closed 4 years ago

bgerrity commented 5 years ago

Updated examples in favor of more readable f-strings over format.

PEP 498 available for Python 3.6 and later.

bgerrity commented 5 years ago

This is a relatively light effort to update to f-strings: If it's agreeable, will add any entries I missed.

Also, may either update the dict keys formatting strings or write a new entry for f-strings.