[Python-Dev] Can we please have a better dict interpolation syntax?
Barry Warsaw
barry at python.org
Thu Oct 23 11:58:08 EDT 2003
More information about the Python-Dev mailing list
Thu Oct 23 11:58:08 EDT 2003
- Previous message: [Python-Dev] Can we please have a better dict interpolation syntax?
- Next message: [Python-Dev] Can we please have a better dict interpolation syntax?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, 2003-10-23 at 11:18, Fred L. Drake, Jr. wrote: > Barry Warsaw writes: > > Then again, see my last post. I'm not sure anything needs to be added > > to core Python to support useful $-strings. Or maybe it can be > > implemented as a library module (or part of a 'textutils' package). > > +1 on adding this as a module. Wasn't there talk of a textutils package around the time of textwrap.py? Maybe add that for Py2.4? > I've managed to implement this a few times, and it would be nice to > just import the same implementation from everywhere I needed it. > > One note: calling this "interpolation" (at least when describing it to > end users) is probably a mistake; "substitution" makes more sense to > people not ingrained in communities where it's called interpolation. > It might be ok to call it interpolation for programmers, > but... there's no need for two different names for it. ;-) Again +1 isn't strong enough. :) End users understand "substitution", they don't understand "interpolation". If started to use the former everywhere now. -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/20031023/765c511d/attachment.bin
- Previous message: [Python-Dev] Can we please have a better dict interpolation syntax?
- Next message: [Python-Dev] Can we please have a better dict interpolation syntax?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list