Re: xrange issue 7721

2010-05-31 Thread Mark Lawrence
On 31/05/2010 09:22, Martin v. Loewis wrote: For the record, the issue you were looking at was a complaint that the documentation is incorrect. This had been fixed by correcting the documentation. I think Mark's point is that the code snippet given isn't a full replacement for xrange, since it

Re: xrange issue 7721

2010-05-31 Thread Martin v. Loewis
For the record, the issue you were looking at was a complaint that the documentation is incorrect. This had been fixed by correcting the documentation. I think Mark's point is that the code snippet given isn't a full replacement for xrange, since it doesn't support negative step sizes, nor does

Re: xrange issue 7721

2010-05-30 Thread Steven D'Aprano
On Mon, 31 May 2010 00:54:16 +0200, Martin v. Loewis wrote: >> Assuming that I am correct, can I create myself a login on the bugs >> tracker and re-open the issue to get this sorted? > > Definitely not. The issue you are looking at has been fixed; whatever > your issue is (you didn't state it cl

Re: xrange issue 7721

2010-05-30 Thread Martin v. Loewis
Assuming that I am correct, can I create myself a login on the bugs tracker and re-open the issue to get this sorted? Definitely not. The issue you are looking at has been fixed; whatever your issue is (you didn't state it clearly), it must be a different one. So if you are going to report any

Re: xrange issue 7721

2010-05-30 Thread Martin Manns
On Sun, 30 May 2010 00:49:11 +0100 Mark Lawrence wrote: > From http://docs.python.org/dev/library/itertools.html > "Unlike regular slicing, islice() does not support negative values > for start, stop, or step." > > Rule 1 of programming never assume anything, particularly wrt > testing. I ass

Re: xrange issue 7721

2010-05-30 Thread Steven D'Aprano
On Sat, 29 May 2010 19:46:28 +0100, Mark Lawrence wrote: > I've had an OverflowError using xrange with Python 2.6.5 on Windows. > Googling got me to the subject line. It is considered best practice (or at least sensible practice) to include a relevant URL in your post. This will maximise the num

Re: xrange issue 7721

2010-05-29 Thread Mark Lawrence
Hi Martin, thanks for the response, please see below. On 29/05/2010 20:12, Martin Manns wrote: On Sat, 29 May 2010 19:46:28 +0100 Mark Lawrence wrote: I've had an OverflowError using xrange with Python 2.6.5 on Windows. Googling got me to the subject line. msg97928 gives a code snippet to ov

Re: xrange issue 7721

2010-05-29 Thread Martin Manns
On Sat, 29 May 2010 19:46:28 +0100 Mark Lawrence wrote: > I've had an OverflowError using xrange with Python 2.6.5 on Windows. > Googling got me to the subject line. > > msg97928 gives a code snippet to overcome the limitations of xrange, > allowing for negative steps, however it doesn't raise

xrange issue 7721

2010-05-29 Thread Mark Lawrence
Sorry if this is the wrong ng/ml, but thought I'd better flag this up somewhere. I've had an OverflowError using xrange with Python 2.6.5 on Windows. Googling got me to the subject line. msg97928 gives a code snippet to overcome the limitations of xrange, allowing for negative steps, however