Issue 18690: memoryview not considered a sequence (original) (raw)
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 -> closednosy: + python-devmessages: + resolution: fixedstage: resolved |
2013-10-02 12:23:46 | ncoghlan | set | assignee: ncoghlanmessages: + nosy: + ncoghlan |
2013-08-09 08:05:37 | pitrou | set | nosy: + mark.dickinson, skrahtype: behavior -> enhancementversions: - Python 3.1, Python 2.7, Python 3.2, Python 3.3, Python 3.5 |
2013-08-08 20:38:26 | sfeltman | create |