Re: plpython function problem workaround - Mailing list pgsql-general

From Tom Lane
Subject Re: plpython function problem workaround
Date
Msg-id 392.1111114131@sss.pgh.pa.us
Whole thread Raw
In response to Re: plpython function problem workaround  (Michael Fuhr <mike@fuhr.org>)
Responses Re: plpython function problem workaround
List pgsql-general
Michael Fuhr <mike@fuhr.org> writes:
> Line-ending CRs stripped, even inside quotes; mid-line CRs converted
> to LF.  Tests done with Python 2.4 on FreeBSD 4.11-STABLE; I wonder
> what Python on Windows would do.

Unfortunately, I don't think that proves anything, because according
to earlier discussion Python will do newline-munging when it reads
a file (including a script file).  The question that we have to deal
with is what are the rules for a string fed to PyRun_String ... and it
seems those rules are not the same.

            regards, tom lane

pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: plpython function problem workaround
Next
From: Michael Fuhr
Date:
Subject: Re: plpython function problem workaround