Re: Multiline plpython procedure - Mailing list pgsql-general

From Michael Fuhr
Subject Re: Multiline plpython procedure
Date
Msg-id 20050118074911.GA17229@winnie.fuhr.org
Whole thread Raw
In response to Re: Multiline plpython procedure  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Multiline plpython procedure
List pgsql-general
On Tue, Jan 18, 2005 at 01:24:31AM -0500, Tom Lane wrote:
>
> It seems odd that in today's climate the Python interpreter
> would not cope well with Windows-style newlines.  Maybe there is some
> configuration issue with Python itself?

http://docs.python.org/ref/physical.html

"A physical line ends in whatever the current platform's convention
is for terminating lines.  On Unix, this is the ASCII LF (linefeed)
character.  On Windows, it is the ASCII sequence CR LF (return
followed by linefeed).  On Macintosh, it is the ASCII CR (return)
character."

And yet simple tests show that normal scripts run on Unix-like
platforms regardless of whether their lines end in LF, CRLF, or CR.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: Multiline plpython procedure
Next
From: mstory@uchicago.edu
Date:
Subject: Re: Users and unique identifyers