Issue #4580: slicing of memoryviews when itemsize != 1 is wrong.
Also fix len() to return number of items rather than length in bytes. I'm sorry it was not possible for me to work on this without reindenting a bit some stuff around. The indentation in memoryobject.c is a mess, I'll open a separate bug for it.
A
Antoine Pitrou committed
c3b39245a7695cf39ba5524f59deeff52b00e5f9
Parent: 8bcddca