Author aeros
Recipients JulienPalard, Mariatta, aeros, docs@python, eric.smith, fdrake, rhettinger
Date 2019-10-03.05:06:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570079185.77.0.375767337715.issue38351@roundup.psfhosted.org>
In-reply-to
Content
> For the most part, templating examples can be switched to the .format() style but shouldn't be switched to f-strings.

Is there no specific use case for the older "%s" % sub template that .format() doesn't have?

> The former technique is still necessary if someone wants to move templates to an external file

Interesting, I wasn't aware of that. This seems like it might be worth a brief mention in https://docs.python.org/3.9/library/stdtypes.html#str.format. 

> AFAICT, it will be around forever, so people still need to see some examples of each.

To allow users to see examples of each, would you suggest that we should leave the existing .format() examples as is and have more recently created examples use f-strings? I'd be okay with this, as long as there's a balance of both everywhere (particularly in the tutorial).

Personally, I think that the f-string examples should be used more commonly used since they're generally more concise and readable. But, I can definitely understand the purpose of leaving the older ones around as long as they have a specific use case and are still utilized.
History
Date User Action Args
2019-10-03 05:06:25aerossetrecipients: + aeros, fdrake, rhettinger, eric.smith, docs@python, JulienPalard, Mariatta
2019-10-03 05:06:25aerossetmessageid: <1570079185.77.0.375767337715.issue38351@roundup.psfhosted.org>
2019-10-03 05:06:25aeroslinkissue38351 messages
2019-10-03 05:06:25aeroscreate