Minor error in calling a python list a tuple

Started by PG Bug reporting formabout 4 years ago3 messagesdocs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

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 ]

I hope I am not wrong and I didn't waste your time.
Thanks,

Nasseh

#2Peter Eisentraut
peter_e@gmx.net
In reply to: PG Bug reporting form (#1)
Re: Minor error in calling a python list a tuple

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.

#3Nasseh Khodaie
nassehk@gmail.com
In reply to: Peter Eisentraut (#2)
Re: Minor error in calling a python list a tuple

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:

Show quoted text

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.