[Python-ideas] Briefer string format

Oscar Benjamin oscar.j.benjamin at gmail.com
Tue Jul 21 18:50:56 CEST 2015

On Tue, 21 Jul 2015 at 14:14 Nick Coghlan <ncoghlan at gmail.com> wrote:

> I wonder though, if we went with the f-strings idea, could we make
> them support a *subset* of the "str.format" call syntax, rather than a
> superset? What if they supported name and attribute lookup syntax, but not
> positional or subscript lookup?

Please don't do either. Python already has a surplus of string formatting
mini-languages. Making a new one that is similar but not the same as one of
the others is a recipe for confusion as well as an additional learning
burden for new users of the language.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150721/40d37e8c/attachment.html>

More information about the Python-ideas mailing list