| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
* allow graceful shuffling of memoryviews, with same behavior as arrays, instead of producing a warning on `memoryview` shuffle
* based on reviewer feedback, instead of explicitly supporting `memoryview` shuffling via `asarray()`, support the shuffling implicitly by using `Sequence` instead of `MutableSequence`
| Back | FazBrowse Home | New Git URL |
Backport of #18282.
Fixes gh-18273
same behavior as arrays, instead of producing
a warning on memoryview shuffle
There's certainly some contention that me doing this downstream was sub-optimal anyway, but I don't think there's any claim that it should be disallowed/considered a bug to shuffle a memoryview.
I was originally going to special case 1-D C-contiguous memoryviews, but the discussion in the matching issue seems to suggest that just using asarray() without fancy special casing might be the way to go?