You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases slicing could be treated as a no-op, but does not appear to be currently. This issue exists to enumerate a few known cases and try to find a way to optimize away all such cases. Also these can be interleaved with more of the same (e.g. d[:, :] or d[:, 0:]) to get other cases too.
FWIW I have a small, dependency free, permissively licensed, pure Python, slice normalization library, which would convert all of the above slices into 0:s:1, which would make it easier to handle all of these. Just something to think about.
Activity
jakirkham commentedon Apr 14, 2017
FWIW I have a small, dependency free, permissively licensed, pure Python, slice normalization library, which would convert all of the above slices into
0:s:1, which would make it easier to handle all of these. Just something to think about.jakirkham commentedon Dec 8, 2017
Not sure when, but this has been resolved. Adding some tests in PR ( #2978 ) to make sure that these remain true in the future.
Edit: Looks like PR ( #2601 ) fixed this.