[Python-Dev] Update PEP 292 (original) (raw)
Barry Warsaw barry at python.org
Wed Aug 11 15:50:35 CEST 2004
- Previous message: [Python-Dev] Re: Update PEP 292
- Next message: [Python-Dev] Update PEP 292
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, 2004-08-11 at 07:22, Michael Hudson wrote:
It's a silly point, but my instant impression on reading
This PEP describes a simpler string substitution feature, also known as string interpolation. is "simpler than what?". Perhaps a better title for the PEP would just be "simple string interpolation".
As others have pointed out, that's described in the text of the PEP.
Otherwise, I like it.
Cool!
The only issue I have with putting it in string is that this makes it a touch harder to bundle up for use with scripts that work with older Python's (I take it the implementation is pure Python and works or can be fairly easily be made to work with 2.2?). But I can live with
try: from string import template except ImportError: from stringcompat import template
To be brutally honest (about our work, that is ;), the template class is so damn simple you could stick its definition in the except clause.
-Barry
-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 307 bytes Desc: This is a digitally signed message part Url : http://mail.python.org/pipermail/python-dev/attachments/20040811/3c44549a/attachment.pgp
- Previous message: [Python-Dev] Re: Update PEP 292
- Next message: [Python-Dev] Update PEP 292
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]