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
"%s %%s %s" % ('foo', 'bar') # easy!
Double % chars let you put %'s in format strings.
>>> "%s %%s %s" % ('foo', 'bar') 'foo %s bar'