Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFISi-0002Zw-0o for pgsql-docs@arkaria.postgresql.org; Wed, 02 Feb 2022 16:26:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nFISg-0001rR-A6 for pgsql-docs@arkaria.postgresql.org; Wed, 02 Feb 2022 16:26:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFH41-0001yb-58 for pgsql-docs@lists.postgresql.org; Wed, 02 Feb 2022 14:56:53 +0000 Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nFH3y-0007u2-EN for pgsql-docs@lists.postgresql.org; Wed, 02 Feb 2022 14:56:52 +0000 Received: by mail-io1-xd35.google.com with SMTP id d188so25725721iof.7 for ; Wed, 02 Feb 2022 06:56:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sE3PrFmdWEvsggXHKjPa3SfFeJ0H+e0N7wU0QPa/bZ8=; b=opaSf3Wlm+aGcdmyNKKjZQYLXDqQlbVs0/RcDCkf2Q2r7zHJER2DJk6EyWwjLydOMN usTevZL9Rq5D02/BOxNJVndD+2r8cHP5Zprz4eIKB2cZVDg6XiwRidX74YDSMV8ZcEl1 hd6SyFijUlkYbI2jW/UvtDUrak0A3+knz+czS04cvIHMz8JMWxinjem80zW+P3gsMnvS YWBkc8ldBlsVcYkWrgqGIXZMi0lZU+Gm9GdCEdZVi2xUMZS8p753/3ZyXuBgpZaISMJv a0Euc/CwedzJ2TVeCibbUOx93SqFHEh/dReeZb7n3zUfa3ScxCSpsCk9WbEeqVLNyBR8 nk7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sE3PrFmdWEvsggXHKjPa3SfFeJ0H+e0N7wU0QPa/bZ8=; b=nOhq0rSCE0dKP066g6XK8uBIr54sILhV5oDwGh4xmym0D7fGDLnchvj9f8c68eHg6M du/i2dbHng22C8Q3RsaSYUAyLGAzGKU7STZysq74oj+OT1vXnqGDqzhdAKukjNC4Lt2a lOyTEko6n1hmr0jgWhaUHG+dRq21PDZ+lwcipU92Nyf3ndgABV+R0dYDVLPgHNiqTpZ+ DXDBwruR4mtIqnpVQUgDKtbm/PfBFlyo+XOYfyiZFhvlSReTB7r36MfvW/BSX9ShvPyF IawB9qldf5bZUi0zNBNRe4Bfr43UW6OTKAQLlCKRR7+q+ucQmgjV1OmebQL+4WMFdaC0 qFTg== X-Gm-Message-State: AOAM530ghLF7Za6/dw7yHSEdT1l+ItX0h7r+42sygNXz1rD9fdpUwxLh RlVh5lIVG8rMG/tpTqErqDD4Fqd8wpnyWiOHCYtN1ybI X-Google-Smtp-Source: ABdhPJyPFkUKwprv0nJJ7tXBwqKqPJZtOrXEY+bcuD563ncb855zDrqWvXMFeaRa/Lyk5G5sZ4/nx4gvYEMVtX5xcyQ= X-Received: by 2002:a05:6638:1927:: with SMTP id p39mr6160154jal.247.1643813808595; Wed, 02 Feb 2022 06:56:48 -0800 (PST) MIME-Version: 1.0 References: <164374545896.17999.4391568104637257825@wrigleys.postgresql.org> <79311e19-c55d-9ca2-785b-986bc14c02b8@enterprisedb.com> In-Reply-To: <79311e19-c55d-9ca2-785b-986bc14c02b8@enterprisedb.com> From: Nasseh Khodaie Date: Wed, 2 Feb 2022 09:56:35 -0500 Message-ID: Subject: Re: Minor error in calling a python list a tuple To: Peter Eisentraut Cc: pgsql-docs@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000236ac805d70a3a6f" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000236ac805d70a3a6f Content-Type: text/plain; charset="UTF-8" Awesome. Thanks for the great work you are doing. All of you. Nasseh On Wed, Feb 2, 2022, 3:17 AM Peter Eisentraut < peter.eisentraut@enterprisedb.com> wrote: > On 01.02.22 20:57, PG Doc comments form wrote: > > The following documentation comment has been logged on the website: > > > > Page: https://www.postgresql.org/docs/13/plpython-data.html > > Description: > > > > Hello, > > In the link bellow there is the mentioned error. > > https://www.postgresql.org/docs/13/plpython-data.html#PLPYTHON-ARRAYS > > > > CREATE FUNCTION make_pair (name text, value integer) > > RETURNS named_value > > AS $$ > > return ( name, value ) > > # or alternatively, as tuple: return [ name, value ] > > $$ LANGUAGE plpythonu; > > > > > > Should be: > > # or alternatively, as list: return [ name, value ] > > Yes, this is a mistake. I have fixed it. Thanks. > --000000000000236ac805d70a3a6f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Awesome.=C2=A0
Thanks for the great=C2= =A0work you=C2=A0are doing. All of you.

Nasseh

On Wed, Feb 2, 2022, 3:17 AM Peter Eisentraut= <peter.eisentraut@= enterprisedb.com> wrote:
On = 01.02.22 20:57, PG Doc comments form wrote:
> The following documentation comment has been logged on the website: >
> Page: https://www.postgresql.or= g/docs/13/plpython-data.html
> Description:
>
> Hello,
> In the link bellow there is the mentioned error.
> https://www.pos= tgresql.org/docs/13/plpython-data.html#PLPYTHON-ARRAYS
>
> CREATE FUNCTION make_pair (name text, value integer)
>=C2=A0 =C2=A0 RETURNS named_value
> AS $$
>=C2=A0 =C2=A0 return ( name, value )
>=C2=A0 =C2=A0 # or alternatively, as tuple: return [ name, value ]
> $$ LANGUAGE plpythonu;
>
>
> Should be:
>=C2=A0 =C2=A0 # or alternatively, as list: return [ name, value ]

Yes, this is a mistake.=C2=A0 I have fixed it.=C2=A0 Thanks.
--000000000000236ac805d70a3a6f--