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

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: doc: Fix example with __next__() in PL/Python function
Date: 2024-11-25 00:16:25
Message-ID: E1tFMm9-003Nsp-ND@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ee3415c00a3156d9355ba75e369e10a25ce96c55

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

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2024-11-25 00:43:28 pgsql: Simplify some SPI tests of PL/Python
Previous Message Noah Misch 2024-11-24 20:50:38 pgsql: Test "options=-crole=" and "ALTER DATABASE SET role".