pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: doc: Fix example with __next__() in PL/Python function
Date: Mon, 25 Nov 2024 00:16:25 +0000
Message-ID: <E1tFMm9-003Nsl-LX@gemulon.postgresql.org> (raw)

doc: Fix example with __next__() in PL/Python function

Per PEP 3114, iterator.next() has been renamed to iterator.__next__(),
and one example in the documentation still used next().  This caused the
example provided to fail the function creation since Python 2 is not
supported anymore since 19252e8ec93.

Author: Erik Wienhold
Discussion: https://postgr.es/m/173209043143.2092749.13692266486972491694@wrigleys.postgresql.org
Backpatch-through: 15

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2ff7c913d92d8540e8b00c54746ce2f565521256

Modified Files
--------------
doc/src/sgml/plpython.sgml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1tFMm9-003Nsl-LX@gemulon.postgresql.org>
Permalink:  ../E1tFMm9-003Nsl-LX@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tFMm9-003Nsl-LX@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: doc: Fix example with __next__() in PL/Python function
  In-Reply-To: <E1tFMm9-003Nsl-LX@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox