[Python-Dev] Alternative placeholder delimiters for PEP 292

Barry Warsaw barry at python.org
Sun Sep 5 11:28:09 EDT 2004


On Sat, 2004-09-04 at 18:20, Andrew Durdin wrote:

> > The PEP 292 rules were specifically chosen for their similarity to
> > placeholder syntaxes in many other languages.
> 
> Sure. But just because many other languages do it that way doesn't
> mean that it's the best way for Python. There are significant
> advantages to using paired delimiters instead of a single prefix
> delimiter.
> 
> The "Rationale" section of PEP 292 says only that the desire was for
> something simpler than the built-in % substitution; if the similarity
> to many other languages is also an important part of the rationale,
> then the PEP should be modified to take that into account, should it
> not?

It's explained in the section of the PEP titled "Why $ and Braces?".

-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 316 bytes
Desc: This is a digitally signed message part
URL: <http://mail.python.org/pipermail/python-list/attachments/20040905/276e8fed/attachment.sig>


More information about the Python-list mailing list