David C. Ullrich dullrich at
Wed Jul 23 17:04:52 CEST 2008

I've been saving data in a file with one line per field.
Now some of the fields may become multi-line strings...

I was about to start escaping and unescaping linefeeds
by hand, when I realized that repr() and eval() should
do. Hence the question: If s is a string, is repr(s)
guaranteed not to contain line breaks?

David C. Ullrich

More information about the Python-list mailing list