[issue38351] Modernize email example from %-formatting to f-string

Raymond Hettinger report at bugs.python.org
Wed Oct 2 23:35:39 EDT 2019


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

>  (Not that I can think of others off the top of my head.)

For the most part, templating examples can be switched to the .format() style but shouldn't be switched to f-strings.  The former technique is still necessary if someone wants to move templates to an external file or if they need to use gettext() i18n, f-strings don't work well in the latter case.

Also note, there are no plans to completely remove old-style formatting.  AFAICT, it will be around forever, so people still need to see some examples of each.

----------
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38351>
_______________________________________


More information about the Python-bugs-list mailing list