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 techtonik
Recipients alex, barry, docs@python, techtonik
Date 2013-11-28.20:00:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385668836.92.0.438028135116.issue19824@psf.upfronthosting.co.za>
In-reply-to
Content
@Alex, have you seen http://pythonhosted.org/flufl.i18n/docs/using.html#substitutions-and-placeholders? I really like the brevity, and it is the function that does the magic, so it is fully transparent and you don't need to instantiate string.Template every time. I think its awesome.

Do you have some explanations why passing locals() to string.Template is anti-pattern? I understand that passing "all that you have" is not good, but from my past experience with PHP I can't remember any problems that there are more names than I used. It is templating after all - what do you want to protect from?
History
Date User Action Args
2013-11-28 20:00:36techtoniksetrecipients: + techtonik, barry, alex, docs@python
2013-11-28 20:00:36techtoniksetmessageid: <1385668836.92.0.438028135116.issue19824@psf.upfronthosting.co.za>
2013-11-28 20:00:36techtoniklinkissue19824 messages
2013-11-28 20:00:36techtonikcreate