This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sfeltman
Recipients sfeltman
Date 2013-08-08.20:38:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1375994306.09.0.288774044914.issue18690@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-08-08 20:38:26sfeltmansetrecipients: + sfeltman
2013-08-08 20:38:26sfeltmansetmessageid: <1375994306.09.0.288774044914.issue18690@psf.upfronthosting.co.za>
2013-08-08 20:38:26sfeltmanlinkissue18690 messages
2013-08-08 20:38:25sfeltmancreate