Message77554
Thanks for your comments. I'll provide an updated patch later today and
let you take a look.
> * Memoryview object should report it's length as self->view.shape[0]
> unless self->view.shape is NULL (indicating in this case a 0-d array or
> scalar). In this case, it should raise an error.
Are 0-d arrays (scalars) really useful? Could we make things simpler by
simply removing support for them?
> * The buffer protocol is clear about who owns the memory for shape and
> strides (and suboffsets). The exporter does and it is responsible for
> not changing them until releasebuffer is called.
But how do we do when slicing a memoryview? The new (sliced) memoryview
object clearly must alter the shape after the buffer has been filled in
by the exporter. |
|
Date |
User |
Action |
Args |
2008-12-10 16:20:36 | pitrou | set | recipients:
+ pitrou, teoliphant, amaury.forgeotdarc, ncoghlan |
2008-12-10 16:20:35 | pitrou | link | issue4580 messages |
2008-12-10 16:20:35 | pitrou | create | |
|