]> granicus.if.org Git - python/commit
Fix bug in passing tuples to string.Template. All other values (with working
authorThomas Wouters <thomas@python.org>
Wed, 5 Jul 2006 11:03:49 +0000 (11:03 +0000)
committerThomas Wouters <thomas@python.org>
Wed, 5 Jul 2006 11:03:49 +0000 (11:03 +0000)
commitadd191118fd583107e900c264f6e7aa1e786a387
treeaff4b6d042a6b729021fcd11b7ed81b29ba81d2a
parent9ba7ca82298fabe84b633514317d795b42eef770
Fix bug in passing tuples to string.Template. All other values (with working
str() or repr()) would work, just not multi-value tuples. Probably not a
backport candidate, since it changes the behaviour of passing a
single-element tuple:

>>> string.Template("$foo").substitute(dict(foo=(1,)))

'(1,)'

versus

'1'
Lib/string.py
Lib/test/test_pep292.py
Misc/NEWS