Issue18690
Created on 2013-08-08 20:38 by sfeltman, last changed 2022-04-11 14:57 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg194707 - (view) | Author: Simon Feltman (sfeltman) | Date: 2013-08-08 20:38 | |
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. |
|||
| msg198830 - (view) | Author: Alyssa Coghlan (ncoghlan) * ![]() |
Date: 2013-10-02 12:23 | |
There's no ducktyping for this due to the Sequence/Mapping confusion so it's a simple missing explicit registration. |
|||
| msg198831 - (view) | Author: Roundup Robot (python-dev) ![]() |
Date: 2013-10-02 12:32 | |
New changeset 95badf936353 by Nick Coghlan in branch 'default': Close #18690: register memoryview with Sequence ABC http://hg.python.org/cpython/rev/95badf936353 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:57:49 | admin | set | github: 62890 |
| 2013-10-02 12:32:17 | python-dev | set | status: open -> closed nosy:
+ python-dev resolution: fixed |
| 2013-10-02 12:23:46 | ncoghlan | set | assignee: ncoghlan |
| 2013-08-09 08:05:37 | pitrou | set | nosy:
+ mark.dickinson, skrah type: behavior -> enhancement |
| 2013-08-08 20:38:26 | sfeltman | create | |

