[Python-ideas] string.Template v2

Ryan rymg19 at gmail.com
Fri Nov 29 06:01:07 CET 2013


Nah, format just takes getting used to, like anything else would. And you don't need to use half the language; Python comes with enough builtin attributes on strings.

anatoly techtonik <techtonik at gmail.com> wrote:
>On Thu, Nov 28, 2013 at 9:31 PM, Ryan <rymg19 at gmail.com> wrote:
>> Why not use string's .format?
>
>Good question. I'd say format language is too complicated. It is the
>same cryptic printf-like char-micromanagement language syntax, where
>every byte counts even if unreadable. I don't know why it was
>introduced. Perhaps there was no other way, but it looks more
>complicated than common templating engine conventions. I'd say it is
>not the best syntax, and its API is not common.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20131128/59280c51/attachment-0001.html>


More information about the Python-ideas mailing list