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

Michael Paquier <michael@paquier.xyz>

Commit: 1a52069914ebf81ab8591f5b451fc9099529c211
Author: Michael Paquier <michael@paquier.xyz>
Date: 2024-11-25T00:15:41Z
Releases: 17.3
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

Files

PathChange+/−
doc/src/sgml/plpython.sgml modified +2 −2

Documentation touched

Discussion