[Python-Dev] s1 == (sf % (s1 / sf))? A bad idea?

Michel Pelletier michel@digicool.com
Tue, 3 Apr 2001 10:54:24 -0700 (PDT)


On Tue, 3 Apr 2001, Peter Funk wrote:

> I'm also not sure, whether this is really a worthwile effort and whether
> I should champion this idea further.  From Pauls response I got the
> impression that people already consider the '%' string interpolation
> operator as a language wart rather than an elegant feature.

It is one seriously useful wart!

> I however often like the infix notation better.
> That may be a matter of taste.  Imagine we would have to write:
> 	"%5d %20s %s\n".printf((num, name, adr))
> instead of
> 	"%5d %20s %s\n" % (num, name, adr)
> I'm happy, that this is not the case in todays Python.

Agreed.  I like your proposal.

-Michel