Re: Multiline plpython procedure - Mailing list pgsql-general

From Tom Lane
Subject Re: Multiline plpython procedure
Date
Msg-id 20366.1106371070@sss.pgh.pa.us
Whole thread Raw
In response to Re: Multiline plpython procedure  (Stuart Bishop <stuart@stuartbishop.net>)
List 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 by date:

Previous
From: "Andrew L. Gould"
Date:
Subject: Re: Data entry - forms design or other APIs etc. - what is there?
Next
From: elein@varlena.com (elein)
Date:
Subject: plpythonu on 7.4