]> git.ipfire.org Git - thirdparty/postgresql.git/commit
doc: Fix example with __next__() in PL/Python function
authorMichael Paquier <michael@paquier.xyz>
Mon, 25 Nov 2024 00:15:41 +0000 (09:15 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 25 Nov 2024 00:15:41 +0000 (09:15 +0900)
commit1a52069914ebf81ab8591f5b451fc9099529c211
treedd63154ddf0aaff3e49f0bcdcc29722e06439e16
parente3b249c6d8f33227a5ee58f9b2d187e7ce71b4c7
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
doc/src/sgml/plpython.sgml