New submission from Claudiu.Popa: Hello. The following seems a little weird:
Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:03:43) [MSC v.1600 32 bit (Intel)] on win32 >>> m = memoryview(b'123') >>> list(m[::-1]) [51, 50, 49] >>> list(reversed(m)) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: object of type 'memoryview' has no len() >>> The attached patch allows `reversed` to be called with memoryviews and it could potentially fix issue18690. ---------- components: Interpreter Core files: memoryview.patch keywords: patch messages: 198324 nosy: Claudiu.Popa priority: normal severity: normal status: open title: Allow reversed(memoryview), like memoryview[::-1] type: behavior versions: Python 3.4 Added file: http://bugs.python.org/file31850/memoryview.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19078> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com