]> granicus.if.org Git - python/commit
Issue #4580: slicing of memoryviews when itemsize != 1 is wrong.
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 3 Jan 2009 16:59:18 +0000 (16:59 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 3 Jan 2009 16:59:18 +0000 (16:59 +0000)
commitc3b39245a7695cf39ba5524f59deeff52b00e5f9
tree9736aa9a6d7c03b55eeb7d362a53f91d6000dda3
parent8bcddcabd770dd424b97d7c667ef8e5337436215
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.
Include/object.h
Lib/ctypes/test/test_pep3118.py
Lib/test/test_io.py
Lib/test/test_memoryview.py
Lib/test/test_sys.py
Misc/NEWS
Objects/memoryobject.c
Objects/unicodeobject.c