[Python-ideas] Draft PEP on string interpolation

Barry Warsaw barry at python.org
Mon Aug 24 20:55:42 CEST 2015


On Aug 24, 2015, at 10:38 AM, Guido van Rossum wrote:

>I cannot accept $ interpolation in the language definition. I also don't
>want PEP 498 and 501 to use different interpolation syntaxes. So to me,
>this means that i18n is off the table as a motivation for PEP 501 (it never
>was on the table for 498), and Nick can focus on motivational examples from
>html/sql/shell code injection for PEP 501 (but only if he can live with the
>PEP 498 surface syntax for interpolation).

I agree with this.  Ignoring i18n, str.format() syntax is greatly preferred
over old-school %-syntax IMO, so focusing 498/501 on being compatible with the
former makes a lot of sense.  Hopefully we can continue to make %-syntax
obsolete, deprecated, or at least disfavored.

Cheers,
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150824/e07a9992/attachment.sig>


More information about the Python-ideas mailing list