This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Adam.Kellas
Recipients Adam.Kellas
Date 2013-01-29.21:30:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1359495046.85.0.635388190725.issue17078@psf.upfronthosting.co.za>
In-reply-to
Content
If you use safe_substitute and try to use a variable reference style other than ${foo}, you will find that it assumes ${foo} style. In particular, when evaluating $[foo] (square braces) and 'foo' is not defined, safe_substitute will put the string back together using ${foo} (curly braces).

See <http://stackoverflow.com/questions/14573230/pythons-string-template-changes-brackets-when-variable-is-unset> for details and test case.
History
Date User Action Args
2013-01-29 21:30:46Adam.Kellassetrecipients: + Adam.Kellas
2013-01-29 21:30:46Adam.Kellassetmessageid: <1359495046.85.0.635388190725.issue17078@psf.upfronthosting.co.za>
2013-01-29 21:30:46Adam.Kellaslinkissue17078 messages
2013-01-29 21:30:46Adam.Kellascreate