Triple quoted repr
Edward C. Jones
edcjones at erols.com
Wed Jun 2 22:49:54 EDT 2004
On 2003-09-04, Rasmus Fogh said:
> I need a way of writing strings or arbitrary Python code that will
>
> a) allow the strings to be read again unchanged (like repr)
> b) write multiline strings as multiline strings instead of escaping
> the \n's.
>
> A repr function that output triple-quoted strings with explicit
> (non-escaped) linebreaks would be perfect.
>
> Failing that, what is the simplest way to get close to the goal?
There were no responses. Anyone have an answer?
More information about the Python-list
mailing list