I am trying to build a format string with lazy argument, eg I need smth like:
\"%s \\%s %s\" % (\'foo\', \'bar\') # \"foo %s bar\"
how can
with python 2.6:
>>> '{0} %s {1}'.format('foo', 'bar') 'foo %s bar'
or with python 2.7:
>>> '{} %s {}'.format('foo', 'bar') 'foo %s bar'