Re: PL/Python patch for Universal Newline Support - Mailing list pgsql-patches

From Tom Lane
Subject Re: PL/Python patch for Universal Newline Support
Date
Msg-id 9154.1111369182@sss.pgh.pa.us
Whole thread Raw
In response to Re: PL/Python patch for Universal Newline Support  (Neil Conway <neilc@samurai.com>)
List pgsql-patches
Neil Conway <neilc@samurai.com> writes:
> Does this work for "\r\n" embedded in string literals?

I believe we'd concluded that Python will unconditionally convert all
\r\n to \n when reading any text file --- including script files ---
and therefore that's what Python programmers will expect to have happen
to scripts.  In other words we should deliberately be non-syntax-aware
when stripping \r.

            regards, tom lane

pgsql-patches by date:

Previous
From: Neil Conway
Date:
Subject: Re: HeapTupleSatisfiesUpdate result as enum
Next
From: Gabor Berenyi
Date:
Subject: fwd: libpq