[Python-ideas] String interpolation again.

INADA Naoki songofacandy at gmail.com
Fri Jul 23 14:10:20 CEST 2010

Hi, all.

Below code is syntax error now:

foo = 123
x = 'foo' foo 'bar'

I wonder if that code is interpreted as:

x = 'foo' + str(foo) + 'bar'
x = 'foo%sbar' % (foo,)

I think this syntax sugar doesn't import any compatibility problem
and simple enough for Python.

What do you think about it?

INADA Naoki  <songofacandy at gmail.com>

More information about the Python-ideas mailing list