[New-bugs-announce] [issue23632] memoryview doesn't allow tuple-indexing

Antoine Pitrou report at bugs.python.org
Tue Mar 10 22:46:41 CET 2015


New submission from Antoine Pitrou:

It is a bit of pity. A least non-sliced indexing should be able to work:

>>> import numpy as np
>>> a = np.arange(10)
>>> memoryview(a)[0]
0
>>> a = np.arange(10).reshape((2,5))
>>> a[0,1]
1
>>> memoryview(a)[0,1]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: memoryview: invalid slice key

----------
messages: 237814
nosy: pitrou, skrah
priority: normal
severity: normal
stage: needs patch
status: open
title: memoryview doesn't allow tuple-indexing
type: enhancement
versions: Python 3.5

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


More information about the New-bugs-announce mailing list