In article
<[EMAIL PROTECTED]>,
MRAB <[EMAIL PROTECTED]> wrote:
> On Jul 23, 4:04 pm, "David C. Ullrich" <[EMAIL PROTECTED]> wrote:
> > 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 u
On Jul 23, 4:04 pm, "David C. Ullrich" <[EMAIL PROTECTED]> wrote:
> 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
In article <[EMAIL PROTECTED]>,
Peter Otten <[EMAIL PROTECTED]> wrote:
> David C. Ullrich wrote:
>
> > In article <[EMAIL PROTECTED]>,
> > Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> >
> >> David C. Ullrich wrote:
> >>
> >> > I've been saving data in a file with one line per field.
> >> > Now
In article <[EMAIL PROTECTED]>,
Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> David C. Ullrich skrev:
>
> >> just keep in mind that using eval() on untrusted data isn't a very good
> >> idea.
> >
> > Right. This data comes from me, gets put into a file and then
> > read by me. Someone _could_ cor
David C. Ullrich skrev:
just keep in mind that using eval() on untrusted data isn't a very good
idea.
Right. This data comes from me, gets put into a file and then
read by me. Someone _could_ corrupt that file, but someone who
could do that could more easily just throw the machine out
the wind
Peter Otten wrote:
> You could also use a csv file with a single row.
Err, I meant column, but a row would also work. Your choice.
Peter
--
http://mail.python.org/mailman/listinfo/python-list
David C. Ullrich wrote:
> In article <[EMAIL PROTECTED]>,
> Fredrik Lundh <[EMAIL PROTECTED]> wrote:
>
>> David C. Ullrich wrote:
>>
>> > 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 escapin
In article <[EMAIL PROTECTED]>,
Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> David C. Ullrich wrote:
>
> > 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 han
David C. Ullrich wrote:
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 rep
On Wed, Jul 23, 2008 at 12:04 PM, David C. Ullrich <[EMAIL PROTECTED]> wrote:
> 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 ev
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 cont
11 matches
Mail list logo