Message135340
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. |
|
Date |
User |
Action |
Args |
2011-05-06 17:23:49 | tenuki | set | recipients:
+ tenuki, rhettinger, ezio.melotti, eric.araujo, docs@python |
2011-05-06 17:23:49 | tenuki | set | messageid: <1304702629.23.0.186911859075.issue12003@psf.upfronthosting.co.za> |
2011-05-06 17:23:46 | tenuki | link | issue12003 messages |
2011-05-06 17:23:46 | tenuki | create | |
|