Re: Multiline plpython procedure

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Multiline plpython procedure
Дата
Msg-id 20050118074911.GA17229@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: Multiline plpython procedure  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Multiline plpython procedure  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Multiline plpython procedure
Следующее
От: mstory@uchicago.edu
Дата:
Сообщение: Re: Users and unique identifyers