mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue 12003: fixing error in xrange alternative sample
This commit is contained in:
parent
0406d966a1
commit
29f6efa844
1 changed files with 1 additions and 1 deletions
|
@ -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, ...])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue