Commit 29f6efa8 authored by Eli Bendersky's avatar Eli Bendersky

Issue 12003: fixing error in xrange alternative sample

parent 0406d966
......@@ -1464,7 +1464,7 @@ available. They are listed here in alphabetical order.
also requires that the number of elements fit in a native C long. If a
larger range is needed, an alternate version can be crafted using the
:mod:`itertools` module: ``islice(count(start, step),
(stop-start+step-1)//step)``.
(stop-start+step-1+2*(step<0))//step)``.
.. function:: zip([iterable, ...])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment