| От | Tom Lane |
|---|---|
| Тема | Re: Multiline plpython procedure |
| Дата | |
| Msg-id | 20366.1106371070@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Multiline plpython procedure (Stuart Bishop <stuart@stuartbishop.net>) |
| Список | pgsql-general |
Stuart Bishop <stuart@stuartbishop.net> writes:
> Changing this behavior in Python would break backwards compatibility.
Nonsense. It would not affect the behavior of any script that was
accepted before.
> In particular, the exec() function accepts strings that have already been
> unescaped:
> exec('print """\n\r\n\r\n"""')
So? That has nothing to do with the treatment of \r and \n outside a
quoted string.
> I suspect this means fixing this problem in plpythonu for 8.1.
plpython does not have a charter to work around Python bugs. If the
Python community feels that this is correct behavior for Python,
then so be it.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера