Re: PL/Python patch for Universal Newline Support

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: Michael Fuhr <mike(at)fuhr(dot)org>, pgsql-patches(at)postgresql(dot)org
Subject: Re: PL/Python patch for Universal Newline Support
Date: 2005-03-21 01:39:42
Message-ID: 9154.1111369182@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Neil Conway <neilc(at)samurai(dot)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

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Satoshi Nagayasu 2005-03-21 05:11:42 Re: read-only database
Previous Message Neil Conway 2005-03-20 23:40:49 Re: HeapTupleSatisfiesUpdate result as enum