Is it possible to do partial string formatting with the advanced string formatting methods, similar to the string template safe_substitute() function?
safe_substitute()
F
Not sure if this is ok as a quick workaround, but how about
s = '{foo} {bar}' s.format(foo='FOO', bar='{bar}')
? :)