News for hackers. Stuff that matters.
Re:Flynt: Convert old Python string formatting to f-strings by estebarb on Wednesday February 10, 2021 @02:14AM (#26086403)
I worked with code generators that use extensively `.format` or `%`. The code of those generators is too difficult to follow. In my previous job I was able to rewrite from scratch over of those generators with saner jinja2 templates. But for inherited/external code that task is not always viable. So, f-strings bring the benefit of being clearer, while keeping the existing code.

There are no comments on this comment yet.