[Python-Dev] transitioning from % to {} formatting

Paul Moore p.f.moore at gmail.com
Wed Sep 30 14:29:11 CEST 2009


2009/9/30 Barry Warsaw <barry at python.org>:
> Although I hate the name 'dicttemplate', this seems like the best solution
> to me.  Maybe it's good that 'dicttemplate' is so ugly though so that people
> will naturally prefer 'format' :).  But I like this because there's not
> really any magic, it's explicit, and the decision is made by the coder at
> the call site.  The implementation does not need to guess at all.

Ignoring the "make it ugly to persuade people not to use it" aspect,
why not just use 'template'?

Paul


More information about the Python-Dev mailing list