Python 3's F-Strings: An Improved String Formatting Syntax

This page summarizes the projects mentioned and recommended in the original post on

Our great sponsors
  • Scout APM - Less time debugging, more time building
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • OPS - Build and Run Open Source Unikernels
  • Rope

    a python refactoring library

    Should you ever find yourself in a situation like that, might help.

  • CPython

    The Python programming language

    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:

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • dissert

    A file-level assertion disabler for Python

    > And we've resisted having per-module pragmas, so maybe it's dead in the water.

    There's a hack for that (no apologies for the self promotion; this project is literally a joke)

  • Pylint

    It's not just a linter that annoys you!

    Here are some benchmarks and a discussion about using f-strings in logging I remember reading a few years ago:

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts