[docs] [issue12003] documentation: alternate version of xrange seems to fail.
alejandro david weil
report at bugs.python.org
Fri May 6 19:23:49 CEST 2011
alejandro david weil <tenuki at gmail.com> added the comment:
Yes it is. I copied both versions but forgot to specify the second is in 2.7.
This is read in the current (2.7) documentation:
# from: http://docs.python.org/library/functions.html?highlight=xrange#xrange
islice(count(start, step), (stop-start+step-1)//step)
and test_xrange.py shows the output of this code against range(). The code includes 2 samples of parameters which gives the unexpected results.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12003>
_______________________________________
More information about the docs
mailing list