This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mm
Recipients georg.brandl, mm
Date 2010-01-16.21:55:58
SpamBayes Score 0.0013016327
Marked as misclassified No
Message-id <1263678962.32.0.0144056263369.issue7721@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2010-01-16 21:56:02mmsetrecipients: + mm, georg.brandl
2010-01-16 21:56:02mmsetmessageid: <1263678962.32.0.0144056263369.issue7721@psf.upfronthosting.co.za>
2010-01-16 21:55:59mmlinkissue7721 messages
2010-01-16 21:55:58mmcreate