Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Support __len__ for memoryview slices #1733
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
symbolique commentedJun 14, 2017
Currently we are forced to use
arr.shape[0]rather thanlen(arr)in code such as:Supporting
__len__would make it more convenient to convert existing Python code and would make the code more compact.