Message204695
@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? |
|
Date |
User |
Action |
Args |
2013-11-28 20:00:36 | techtonik | set | recipients:
+ techtonik, barry, alex, docs@python |
2013-11-28 20:00:36 | techtonik | set | messageid: <1385668836.92.0.438028135116.issue19824@psf.upfronthosting.co.za> |
2013-11-28 20:00:36 | techtonik | link | issue19824 messages |
2013-11-28 20:00:36 | techtonik | create | |
|