Message204677
http://docs.python.org/2/library/string.html#template-strings
This class could be more useful with the following example:
>>> from string import Template
>>> t = Template('$who likes $what')
>>> who = 'tim'
>>> what = 'kung pao'
>>> t.substitute(locals())
'tim likes kung pao'
This will help PHP folks to transition their .php files. |
|
Date |
User |
Action |
Args |
2013-11-28 17:07:04 | techtonik | set | recipients:
+ techtonik, docs@python |
2013-11-28 17:07:04 | techtonik | set | messageid: <1385658424.56.0.963803246137.issue19824@psf.upfronthosting.co.za> |
2013-11-28 17:07:04 | techtonik | link | issue19824 messages |
2013-11-28 17:07:04 | techtonik | create | |
|