New submission from Simon Feltman: This was a bit unexpected as memoryviews support all the methods of the Sequence abstract base class:
>>> import collections >>> b = bytearray(b'asdf') >>> isinstance(b, collections.Sequence) True >>> m = memoryview(b) >>> isinstance(m, collections.Sequence) False It would be nice if memoryview was registered with the Sequence ABC and MutableSequence for writeable memoryviews. ---------- components: Library (Lib) messages: 194707 nosy: sfeltman priority: normal severity: normal status: open title: memoryview not considered a sequence type: behavior versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18690> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com