Message166012
| Author |
skrah |
| Recipients |
christian.heimes, meador.inge, ncoghlan, pitrou, python-dev, skrah, vstinner |
| Date |
2012年07月21日.11:41:15 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1342870875.94.0.962676510061.issue12834@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
There is an additional problem with PyBuffer_ToContiguous():
Suppose 'view' is multi-dimensional, C-contiguous and initialized
according to PyBUF_ND, i.e. view->shape != NULL but view->strides == NULL.
Now if PyBuffer_ToContiguous() is called with 'F', PyBuffer_IsContiguous()
returns false and view->strides will be accessed.
This means that incomplete buffer information will have to be
reconstructed like it is done in the 3.3 memoryview. |
|