Anonymous - 2013-11-18

Originally posted by: j...@passmore4.com

Actually, I think everything is working exactly as Python is designed.  In NumPy array slices, like Python list slices, the second parameter in a🅱️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-slicing

Probably should be marked as non-issue.