Message194707
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. |
|
Date |
User |
Action |
Args |
2013-08-08 20:38:26 | sfeltman | set | recipients:
+ sfeltman |
2013-08-08 20:38:26 | sfeltman | set | messageid: <1375994306.09.0.288774044914.issue18690@psf.upfronthosting.co.za> |
2013-08-08 20:38:26 | sfeltman | link | issue18690 messages |
2013-08-08 20:38:25 | sfeltman | create | |
|