Diez B. Roggisch wrote: > [EMAIL PROTECTED] wrote: > > Maybe the built-in string interpolation is sufficient? > > print "Hello %(name)s" % dict(name="Peter Pan")
Or in recent pythons, the built-in string templating system (see http://docs.python.org/lib/node109.html) >>> from string import Template >>> d = dict(name="Barney") >>> s = Template("Hello $name") >>> s.substitute(d) 'Hello Barney' -- http://mail.python.org/mailman/listinfo/python-list