Ian Bicking: the old part of his blog

Re: String Interpolation

Ian, what do you think of using % operator as basic templates? I do it now and delay decision on some templating language.

>>> name = 'Bob'
>>> size = 5
>>> '%(name)s\'s size is %(size)d.' % locals()
"Bob's size is 5."
>>>
Comment on String Interpolation