[Python-Dev] Re: Alternative placeholder delimiters for PEP 292

Edward C. Jones edcjones at erols.com
Sun Sep 5 15:57:36 CEST 2004


On Sat, 04 Sep 2004, Barry Warsaw wrote:

>On Mon, 2004-08-30 at 02:11, Andrew Durdin wrote:
>
>>   I propose that the Template module not use $ to set off
>>    placeholders; instead, placeholders are delimited by braces {}.
>>    The following rules for {}-placeholders apply:
>>    
>>
>
>The PEP 292 rules were specifically chosen for their similarity to
>placeholder syntaxes in many other languages.
>  
>
Just because other languages use "$" does not mean that Python should. 
IMHO, lines of code with "$"s in them do not read with a smooth flow. 
They start to look like regex or Perl. I suggest "<@...@>" which I think 
reads more smoothly. If "$" is too locked in to change, please allow 
users to change the default.




More information about the Python-Dev mailing list