Re: New user: Windows, Postgresql, Python
От | Marco Colombo |
---|---|
Тема | Re: New user: Windows, Postgresql, Python |
Дата | |
Msg-id | 42382A9F.303@esi.it обсуждение исходный текст |
Ответ на | Re: New user: Windows, Postgresql, Python (Michael Fuhr <mike@fuhr.org>) |
Список | pgsql-general |
Michael Fuhr wrote: > On Tue, Mar 15, 2005 at 10:46:09PM +0000, Paul Moore wrote: > > >>The long and short of it is that I believe you just use \n to delimit >>lines on Windows, just like anywhere else. > > > Many thanks -- your test results contain the info we've been seeking. > Thanks a lot Paul. Micheal, you were right. It seems python documentation is plain wrong, or I'm not able to read it at all: 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." This is the language _reference_ manual, btw. I'm very surprised to hear python on windows is so broken. Anyway, that makes life simpler for us. plpython programs are \n separated, no matter what platform the server runs on. Client applications just need to conply, which is what I suggested some time ago. I'm glad to hear there's nothing to change on the server side. .TM. -- ____/ ____/ / / / / Marco Colombo ___/ ___ / / Technical Manager / / / ESI s.r.l. _____/ _____/ _/ Colombo@ESI.it
В списке pgsql-general по дате отправления: