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 1nFApI-0002Ni-KW for pgsql-docs@arkaria.postgresql.org; Wed, 02 Feb 2022 08:17:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nFApH-0001gV-Gk for pgsql-docs@arkaria.postgresql.org; Wed, 02 Feb 2022 08:17:15 +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 1nFApG-0001gL-Ct for pgsql-docs@lists.postgresql.org; Wed, 02 Feb 2022 08:17:15 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFApB-0004jI-5Y for pgsql-docs@lists.postgresql.org; Wed, 02 Feb 2022 08:17:14 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id E32A95C00E5; Wed, 2 Feb 2022 03:17:06 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 02 Feb 2022 03:17:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=vFAlvjR1NCSKNv2svrgsNlMm+HEE5KLAhCmeC1CD3+c=; b=N5Vh0I1l QfPpbdSWySW9ckcFD1NaxQeZoya4mvgpGpCq3HeIKUEg0T8VZXgfxQXyWr/ypcK7 mSe4l68PUsvZWButPxLK+yS8ybz1+AtN8v/UB9A5LMnrzIhEPt7CdeuxLTkPP1Ju 9BbN39J6FOr5MSPSEvqjVorKdC9PCM0XCNdwUT6siLY0Q02pBFX34DGDCNAZPJot 37mY3tnq6DOXUXy1bCRkSMpJJdlYOjLnN5l4lj92lchFwkjww364ymsbPCrtQJ9S 5aQCuInpCGGiObeFymUsO5jqntTAKpt94r9mCcGBVBRq2KpiZwF/jMt/YnG/Zbl+ nqf0b+qJBMZI+w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrgeeggdduudegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtje ertddtfeejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghr rdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhmqeenucggtffrrg htthgvrhhnpeffvefgueduueelieeufeejvdfhffettddtudegvdeuuedtuddvhedvheff udejhfenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhht rhgruhhtsegvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Feb 2022 03:17:05 -0500 (EST) Message-ID: <79311e19-c55d-9ca2-785b-986bc14c02b8@enterprisedb.com> Date: Wed, 2 Feb 2022 09:17:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: Minor error in calling a python list a tuple Content-Language: en-US To: nassehk@gmail.com, pgsql-docs@lists.postgresql.org References: <164374545896.17999.4391568104637257825@wrigleys.postgresql.org> From: Peter Eisentraut In-Reply-To: <164374545896.17999.4391568104637257825@wrigleys.postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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.