Message135340
| Author |
tenuki |
| Recipients |
docs@python, eric.araujo, ezio.melotti, rhettinger, tenuki |
| Date |
2011年05月06日.17:23:46 |
| SpamBayes Score |
0.001618275 |
| Marked as misclassified |
No |
| Message-id |
<1304702629.23.0.186911859075.issue12003@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|