[issue18690] memoryview not considered a sequence

2013-10-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 95badf936353 by Nick Coghlan in branch 'default': Close #18690: register memoryview with Sequence ABC http://hg.python.org/cpython/rev/95badf936353 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> clos

[issue18690] memoryview not considered a sequence

2013-10-02 Thread Nick Coghlan
Nick Coghlan added the comment: There's no ducktyping for this due to the Sequence/Mapping confusion so it's a simple missing explicit registration. -- assignee: -> ncoghlan nosy: +ncoghlan ___ Python tracker ___

[issue18690] memoryview not considered a sequence

2013-08-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +mark.dickinson, skrah type: behavior -> enhancement versions: -Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.5 ___ Python tracker __

[issue18690] memoryview not considered a sequence

2013-08-08 Thread Simon Feltman
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) F