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 string_compat 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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4