On Oct 4, 2009, at 4:11 AM, Nick Coghlan wrote:
Barry Warsaw wrote:I also don't think this is a case of anti-TOOWTDI. For most situations{}-strings are great (IMO), but in the specific translation domain, I suspect $-strings are still better.I agree that keeping string.Template around is valid due to its focus onbeing very simple to use (especially for non-coders producing translation templates)However, string.Template is already set up to work for the relevant APIsin that domain so I don't think it will really be affected by anychanges to the underlying language and library support for brace formatting.
What if you wanted to translate log messages? Printing to a StringIO first really isn't a very good solution.
-Barry
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com