Author mm
Recipients georg.brandl, mm
Date 2010-01-16.21:55:58
SpamBayes Score 0.00130163
Marked as misclassified No
Message-id <>
In the Python 2.6.4 documentation "2. Built-in Functions" at,
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:02mmsetrecipients: + mm, georg.brandl
2010-01-16 21:56:02mmsetmessageid: <>
2010-01-16 21:55:59mmlinkissue7721 messages
2010-01-16 21:55:58mmcreate