Open GoogleCodeExporter opened 9 years ago
[deleted comment]
Actually, I think everything is working exactly as Python is designed. In
NumPy array slices, like Python list slices, the second parameter in a:b:c can
be thought of as "up to but not including b." About halfway down this page
http://docs.python.org/2/tutorial/introduction.html#strings
there is an illustration I'll copy here...
"""
One way to remember how slices work is to think of the indices as pointing
between characters, with the left edge of the first character numbered 0. Then
the right edge of the last character of a string of n characters has index n,
for example:
+---+---+---+---+---+
| H | e | l | p | A |
+---+---+---+---+---+
0 1 2 3 4 5
"""
You might want to spend some time on that Python doc page above, or at the
following.
http://scipy-lectures.github.io/intro/numpy/array_object.html#indexing-and-slici
ng
Probably should be marked as non-issue.
Original comment by j...@passmore4.com
on 18 Nov 2013 at 5:00
Original issue reported on code.google.com by
sroec...@gmail.com
on 24 Sep 2013 at 5:11