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 teoliphant
Recipients amaury.forgeotdarc, ncoghlan, pitrou, teoliphant
Date 2008-12-10.15:13:34
SpamBayes Score 4.905933e-07
Marked as misclassified No
Message-id <1228922015.2.0.216807647566.issue4580@psf.upfronthosting.co.za>
In-reply-to
Content
My perspective on statements made:
 
 * 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. 

 * 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.

 * It should also be clear that shape, strides, and suboffsets will be
NULL in exactly two cases
   1) The corresponding flag was not set indicating the consumer is not
interested in shape, strides, or suboffsets
   2) ndim == 0 indicating a 0-dimensional array (scalar-like).
History
Date User Action Args
2008-12-10 15:13:35teoliphantsetrecipients: + teoliphant, amaury.forgeotdarc, ncoghlan, pitrou
2008-12-10 15:13:35teoliphantsetmessageid: <1228922015.2.0.216807647566.issue4580@psf.upfronthosting.co.za>
2008-12-10 15:13:34teoliphantlinkissue4580 messages
2008-12-10 15:13:34teoliphantcreate