Re: PL/Python patch for Universal Newline Support

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PL/Python patch for Universal Newline Support
Дата
Msg-id 9154.1111369182@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PL/Python patch for Universal Newline Support  (Neil Conway <neilc@samurai.com>)
Список pgsql-patches
Neil Conway <neilc@samurai.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

В списке pgsql-patches по дате отправления:

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: HeapTupleSatisfiesUpdate result as enum
Следующее
От: Gabor Berenyi
Дата:
Сообщение: fwd: libpq