Ian Bicking: the old part of his blog

Re: String Interpolation

This already exists in Itpl, and has since at least 2000 [1]:

>>> import Itpl
>>> pp = Itpl.itpl
>>> x = "This is a test"
>>> print pp("Today made me say $x.upper()")
Today made me say THIS IS A TEST
>>> print pp("Today made me say ${' '.join(('what', 'is', 'going', 'on?'))}")
Today made me say what is going on?

[1] http://lfw.org/python/Itpl.py

Comment on String Interpolation
by Bill Mill