On Fri, Nov 25, 2016 at 1:29 AM, Mark Summerfield <l...@qtrac.plus.com> wrote:
> The article has a section called:
>
>     "Too Many Formatting Options"
>
> He's right! The % formatting was kept to help port old code, the new 
> .format() which is far more versatile is a bit verbose, so finally they've 
> settled on f-strings. So, you do need to know that all three exist (e.g., for 
> maintaining code), but you can easily choose the style that you prefer and 
> just use that.

Largely tangential, but don't you mean "all four"? PEP-292 template
strings are also still around, though I don't recall that I've ever
seen them used in the wild.

When I read that Python 3.6 would include f-strings, I turned to the
coworker sitting next to me and said, "Oh my god, Python is adding yet
another new syntax for string formatting." It's getting to be a joke.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to