[New-bugs-announce] [issue18690] memoryview not considered a sequence
Simon Feltman
report at bugs.python.org
Thu Aug 8 22:38:26 CEST 2013
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 <report at bugs.python.org>
<http://bugs.python.org/issue18690>
_______________________________________
More information about the New-bugs-announce
mailing list