Re: Misprints in code
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Erik Wienhold <ewie@ewie.name>
Cc: el481@yandex.ru, pgsql-docs@lists.postgresql.org
Date: 2024-11-25T00:06:21Z
Lists: pgsql-docs
On Thu, Nov 21, 2024 at 04:31:07PM +0100, Erik Wienhold wrote: > Good catch! That's a leftover from Python 2 and missed in commit > 4228cabb72b after Python 2 was dropped in 15.0. Patch attached. > > While looking at, we can also simplify a couple of plpython3u test > functions that still try res.next() before res.__next__(). Attached as > a separate patch. Sounds about right to me, the example greet() fails with plpython3. For reference, this has been implemented in upstream here: https://peps.python.org/pep-3114/ The existing tests of plpython mentioned this link, and I've bumped over it again while looking for references on the matter. Will fix. Thanks for the report! -- Michael
Commits
-
Simplify some SPI tests of PL/Python
- db80507d9846 18.0 landed
-
doc: Fix example with __next__() in PL/Python function
- ef2f4727b3fa 15.11 landed
- ee3415c00a31 16.7 landed
- 1a52069914eb 17.3 landed
- 2ff7c913d92d 18.0 landed
-
plpython: Adjust docs after removal of Python 2 support.
- 4228cabb72bb 15.0 cited