This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients amaury.forgeotdarc, ncoghlan, pitrou, teoliphant
Date 2008-12-10.16:20:35
SpamBayes Score 4.444542e-07
Marked as misclassified No
Message-id <1228926036.31006.5.camel@localhost>
In-reply-to <1228922015.2.0.216807647566.issue4580@psf.upfronthosting.co.za>
Content
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.
History
Date User Action Args
2008-12-10 16:20:36pitrousetrecipients: + pitrou, teoliphant, amaury.forgeotdarc, ncoghlan
2008-12-10 16:20:35pitroulinkissue4580 messages
2008-12-10 16:20:35pitroucreate