[Python-Dev] Yet another string formatting proposal

Fredrik Lundh fredrik@pythonware.com
Thu, 21 Nov 2002 20:24:54 +0100


oren won't give up:


>     "\(a) + \(b) = \(a+b)\n"
> 
> The expressions embedded in the string are parsed at compile time and
> any syntax errors in them are detected during compilation.

note that "\(" is commonly used to escape parentheses in regular
expression strings.

</F>