Thread: next method of Python iterators

next method of Python iterators

From
PG Doc comments form
Date:
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/17/plpython-data.html
Description:

Method `next` of an iterator should be named `__next__` instead.

Re: next method of Python iterators

From
Tom Lane
Date:
PG Doc comments form <noreply@postgresql.org> writes:
> Method `next` of an iterator should be named `__next__` instead.

This was reported and fixed recently [1], but thanks for the report!

            regards, tom lane

https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=2ff7c913d