[SciPy-user] Array Bounds
Fri Mar 9 09:57:36 CST 2007
Again a newbie question: I noticed that Python (or at least
Numpy/Scipy) follows the C convention of labeling as zero the first
element in an array.
I can live with this, but I do not find very intuitive the loop behavior:
for i in range (1,5 )
means that i actually takes values 1,2,3,4 and not 5!
Why this choice? Is it a consequence of the array labeling? In case
one should not like it, can it be changed by the user?
More information about the SciPy-user