Re: Q's: pythonD and range(1,12)

2006-03-14 Thread Steven D'Aprano
On Mon, 13 Mar 2006 17:24:31 -0800, Raymond Hettinger wrote: > John Savage wrote: >> Could >> someone please explain the rationale behind python designers' thinking >> in deciding the function "range(1,12)" should return the sequence 1 to >> 11 rather than the more intuitively-useful 1 to 12?? >

Re: Q's: pythonD and range(1,12)

2006-03-13 Thread Raymond Hettinger
John Savage wrote: > Could > someone please explain the rationale behind python designers' thinking > in deciding the function "range(1,12)" should return the sequence 1 to > 11 rather than the more intuitively-useful 1 to 12?? There are several ways to do this, closed intervals, half-open interva

Re: Q's: pythonD and range(1,12)

2006-03-13 Thread Tim Leslie
On 3/14/06, John Savage <[EMAIL PROTECTED]> wrote: I've very new to python, and am currently toying with pythonD. Couldsomeone please explain the rationale behind python designers' thinkingin deciding the function "range(1,12)" should return the sequence 1 to 11 rather than the more intuitively-use

Re: Q's: pythonD and range(1,12)

2006-03-13 Thread Scott David Daniels
John Savage wrote: > Could someone please explain the rationale behind python designers' thinking > in deciding the function "range(1,12)" should return the sequence 1 to > 11 rather than the more intuitively-useful 1 to 12?? Essentially, it has to do with the decision to have range(5) mean the lis