raw format string in string format method?

Helmut Jarausch jarausch at skynet.be
Thu Feb 28 09:11:17 EST 2013


Hi,

I'd like to print a string with the string format method which uses
{0}, ...

Unfortunately, the string contains TeX commands which use lots of
braces. Therefore I would have to double all these braces just for the
format method which makes the string hardly readable.

Is there anything like a "raw" format string and any other means
to circumvent this?

Many thanks for a hint,
Helmut.



More information about the Python-list mailing list