Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group