From cd3481181807aa0930d95e19226e451fd9839abe Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 28 Jun 2017 23:11:09 -0700 Subject: just use builtin next() --- documentation/index.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'documentation/index.rst') diff --git a/documentation/index.rst b/documentation/index.rst index b8d6e3c..6a5a4e6 100644 --- a/documentation/index.rst +++ b/documentation/index.rst @@ -164,7 +164,9 @@ functions and methods is the stdlib :mod:`py3:inspect` module. Get the next item of iterator *it*. :exc:`py3:StopIteration` is raised if the iterator is exhausted. This is a replacement for calling ``it.next()`` - in Python 2 and ``next(it)`` in Python 3. + in Python 2 and ``next(it)`` in Python 3. Python 2.6 and above have a + builtin ``next`` function, so six's version is only necessary for Python 2.5 + compatibility. .. function:: callable(obj) -- cgit v1.2.1