[issue19078] Allow reversed(memoryview), like memoryview

Claudiu.Popa report at bugs.python.org
Sun Sep 29 08:22:21 CEST 2013


Claudiu.Popa added the comment:

For multidimensional arrays it doesn't seem to work (yet).

>>> x = numpy.array([[1,2,3], [4,5,6]])
>>> list(reversed(x))
[array([4, 5, 6]), array([1, 2, 3])]
>>> x.data
<memory at 0x8032d06b8>
>>> list(reversed(x.data))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NotImplementedError: multi-dimensional sub-views are not implemented
>>>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19078>
_______________________________________


More information about the Python-bugs-list mailing list