summaryrefslogtreecommitdiff
path: root/documentation/index.rst
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-06-28 23:11:09 -0700
committerBenjamin Peterson <benjamin@python.org>2017-06-28 23:11:09 -0700
commitcd3481181807aa0930d95e19226e451fd9839abe (patch)
tree5ffd847452934fb53ef666afa967804c9bbcbf78 /documentation/index.rst
parent7036f12f9764f272fb7bbdad509f1051134b952d (diff)
downloadsix-git-cd3481181807aa0930d95e19226e451fd9839abe.tar.gz
just use builtin next()
Diffstat (limited to 'documentation/index.rst')
-rw-r--r--documentation/index.rst4
1 files changed, 3 insertions, 1 deletions
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)