syntax difference

Ben Finney ben+python at benfinney.id.au
Sun Jun 17 03:30:30 EDT 2018


Chris Angelico <rosuav at gmail.com> writes:

> Also: I would call that a "note", not a "warning". Please stop
> spreading the FUD that there's somehow something "wrong" with using
> what is a well-known convention for a format mini-language.

If I say there's something “wrong” with it (is that different from
saying there's something wrong with it? I am not sure the function of
the quotes you use there), I'm not aware. I haven't stated the
printf-style formatting is especially prone to official deprecation.

As for a clear *preference*, as presented in the Python documentation,
for ‘str.format’ rather than printf-style, I'll continue to spread that
implication which seems a pretty uncontroversial reading of the Python
documentation.

-- 
 \            “Beware of bugs in the above code; I have only proved it |
  `\                 correct, not tried it.” —Donald Knuth, 1977-03-29 |
_o__)                                                                  |
Ben Finney




More information about the Python-list mailing list