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.