Skip to content
Snippets Groups Projects
Commit 75fa408e authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

BF: Allow open slice endings

parent 3e5cf75c
No related branches found
No related tags found
No related merge requests found
......@@ -825,6 +825,8 @@ def expectedShape(sliceobj, shape):
if start is None: start = 0
if stop is None: stop = shape[i]
stop = min(stop, shape[i])
expShape.append(stop - start)
return len(expShape), expShape
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment