[Python-Dev] Re: Alternative placeholder delimiters for PEP 292 (original) (raw)
Edward C. Jones edcjones at erols.com
Sun Sep 5 15:57:36 CEST 2004
- Previous message: [Python-Dev] UPDATE: New 2.4a3 Windows installer and random.py patch available
- Next message: [Python-Dev] decorator support
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [Python-Dev] UPDATE: New 2.4a3 Windows installer and random.py patch available
- Next message: [Python-Dev] decorator support
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]