| От | Tom Lane |
|---|---|
| Тема | Re: plpython function problem workaround |
| Дата | |
| Msg-id | 8648.1111165874@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: plpython function problem workaround (Marco Colombo <pgsql@esiway.net>) |
| Ответы |
Re: plpython function problem workaround
|
| Список | pgsql-general |
Marco Colombo <pgsql@esiway.net> writes:
> Right now I'm parsing the string first, changing the resulting
> parse tree adding missing nodes (def, INDENT, DEINDENT) and
> then compiling it.
Hmmm ... is this really going to be simpler or more robust than lexing
the string carefully enough to insert tabs at the right places? The
impression I had so far was that you'd only need to understand about
Python's string-literal conventions to get that right ... and that's
something that's not likely to change. I'm not so sure that parse
trees can be regarded as an immutable API.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера