Search Postgresql Archives

Re: Multiline plpython procedure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stuart Bishop <stuart@xxxxxxxxxxxxxxxx> 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

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux