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

From Alvaro Herrera
Subject Re: plpython function problem workaround
Date
Msg-id 20050315151719.GA6564@dcc.uchile.cl
Whole thread Raw
In response to Re: plpython function problem workaround  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Tue, Mar 15, 2005 at 09:46:54AM -0500, Tom Lane wrote:
> "Sim Zacks" <sim@compulab.co.il> writes:
> > I've been looking at the possibility of having a planned CR in the source
> > code and I don't see a case where it would happen.
>
> Does python actually disallow newlines in string literals?  That is
>
>     x = 'foo
> bar'
>
> Whether you think this is good style is not the question --- is it
> allowed by the language?

You can do

    x = """this has
newlines embedded"""

--
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"Linux transformó mi computadora, de una `máquina para hacer cosas',
en un aparato realmente entretenido, sobre el cual cada día aprendo
algo nuevo" (Jaime Salinas)

pgsql-general by date:

Previous
From: Fred Blaise
Date:
Subject: Re: pg/plsql question
Next
From: John DeSoi
Date:
Subject: Re: pg/plsql question