diff options
author | Benjamin Peterson <benjamin@python.org> | 2017-06-28 23:11:09 -0700 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2017-06-28 23:11:09 -0700 |
commit | cd3481181807aa0930d95e19226e451fd9839abe (patch) | |
tree | 5ffd847452934fb53ef666afa967804c9bbcbf78 | |
parent | 7036f12f9764f272fb7bbdad509f1051134b952d (diff) | |
download | six-git-cd3481181807aa0930d95e19226e451fd9839abe.tar.gz |
just use builtin next()
-rw-r--r-- | documentation/index.rst | 4 |
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) |