Changes by Stefan Krah stefan-use...@bytereef.org:
--
assignee: skrah -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14130
___
___
Ian Beaver added the comment:
Its not multi-dimensional slicing to get a subset of objects as in Numpy, but
more the ability to slice a buffer containing a multi-dimensional array as raw
bytes. Buffer objects in Python2.7 are dimensionality naive so it works fine.
You were correct that I
Nick Coghlan added the comment:
memoryview supports slicing - it just doesn't support NumPy style
*multi-dimensional* slicing (and buffer doesn't support that either).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14130
Nick Coghlan added the comment:
(However, if you're on Python 3.2, then you'll likely need to upgrade to Python
3.3 - memoryview *does* have a lot of additional limitations in Python 3.2)
--
___
Python tracker rep...@bugs.python.org
Stefan Krah added the comment:
Ian, could you please provide an example where multi-dimensional
indexing and slicing works in 2.x but not in 3.3?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14130
Ian Beaver added the comment:
If there is any way to get this implemented, it is needed. For one, the docs
on memoryview make no mention that indexing and slicing doesn't work with
multi-dimensional data which led me to believe it was supported until I tried
using it. A second reason is
Stefan Krah added the comment:
I would probably work on it (it's basically implemented in _testbuffer.c),
but I'm not sure if the NumPy community will actually use the feature.
--
___
Python tracker rep...@bugs.python.org
DLowell added the comment:
Is this issue still being worked on?
--
nosy: +DLowell
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14130
___
___
Changes by Alexander Belopolsky alexander.belopol...@gmail.com:
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14130
___
___
Changes by Stefan Krah stefan-use...@bytereef.org:
--
assignee: skrah
nosy: ncoghlan, pitrou, pv, skrah, teoliphant
priority: normal
severity: normal
stage: needs patch
status: open
title: memoryview: add multi-dimensional indexing and slicing
type: enhancement
New submission from Stefan Krah stefan-use...@bytereef.org:
The PEP-3118 authors originally planned to have support for multi-dimensional
indexing and slicing in memoryview.
Since memoryview now already has the capabilities of multi-dimensional
list representations and comparisons, this would
Changes by Stefan Krah stefan-use...@bytereef.org:
--
components: +Interpreter Core
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14130
___
12 matches
Mail list logo