Message97912
In the Python 2.6.4 documentation "2. Built-in Functions" at
http://docs.python.org/library/functions.html,
the section about the xrange function (paragraph "CPython implementation detail") contains the following code:
islice(count(start, step), (stop-start+step-1)//step)
However, count only accepts one parameter, so that this solution does
not work. Furthermore, islice only accepts positive values for step.
Therefore, the code does not work.
I tested this with Python 2.5.4 and Python 2.6.4 on Debian Linux (AMD64). |
|
Date |
User |
Action |
Args |
2010-01-16 21:56:02 | mm | set | recipients:
+ mm, georg.brandl |
2010-01-16 21:56:02 | mm | set | messageid: <1263678962.32.0.0144056263369.issue7721@psf.upfronthosting.co.za> |
2010-01-16 21:55:59 | mm | link | issue7721 messages |
2010-01-16 21:55:58 | mm | create | |
|