How to postpone/defer the evaluation of f-strings?

Here’s a complete “Ideal 2”. It’s not an f-string—it doesn’t even use f-strings—but it does as requested. Syntax exactly as specified. No security headaches since we are not using eval(). It uses a little class and implements __str__ which is automatically called by print. To escape the limited scope of the class we use the … Read more