[Python-ideas] One way to do format and print
Stefan Krah
skrah at bytereef.org
Mon Sep 7 22:29:46 CEST 2015
Sven R. Kunze <srkunze at ...> writes:
> >>> Percent formatting is similar to what other C-derived languages have,
> >> Still necessary? Really, really necessary? Or just because we can?
> >>
> > Absolutely. For many Python users this is the preferred form. I find
> > that of all variations, this one is the most readable.
>
> Okay, convinced. ;)
>
> No, seriously, what would you do when Python would deprecate % syntax?
> Could you switch to {} ?
There are many conservative Python users who are probably underrepresented
on this list. All can say is that %-formatting never went out of
fashion, see e.g.
https://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Streams ,
https://google-styleguide.googlecode.com/svn/trunk/pyguide.html#Strings ,
https://golang.org/pkg/fmt/
and many others.
Fortunately, there are no plans to deprecate %-formatting (latest
reference is PEP-498).
Stefan Krah
More information about the Python-ideas
mailing list