23 Jul
2010
23 Jul
'10
3:10 p.m.
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'
or
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