[Python-ideas] String interpolation again. (original) (raw)
INADA Naoki songofacandy at gmail.com
Fri Jul 23 14:10:20 CEST 2010
- Previous message: [Python-ideas] [Python-Ideas] Set the namespace free!
- Next message: [Python-ideas] String interpolation again.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <songofacandy at gmail.com>
- Previous message: [Python-ideas] [Python-Ideas] Set the namespace free!
- Next message: [Python-ideas] String interpolation again.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]