Message169769
In the new patch, I added docstrings for the data members and now the list of memoryview data descriptors looks as follows in pydoc:
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| c_contiguous
| A bool indicating whether the memory is C contiguous.
|
| contiguous
| A bool indicating whether the memory is contiguous.
|
| f_contiguous
| A bool indicating whether the memory is Fortran contiguous.
|
| format
| A string containing the format (in struct module style)
| for each element in the view.
|
| itemsize
| The size in bytes of each element of the memoryview.
|
| nbytes
| The amount of space in bytes that the array would use in
| a contiguous representation.
|
| ndim
| An integer indicating how many dimensions of a multi-dimensional
| array the memory represents.
|
| obj
| The underlying object of the memoryview.
|
| readonly
| A bool indicating whether the memory is read only.
|
| shape
| A tuple of ndim integers giving the shape of the memory
| as a N-dimensional array.
|
| strides
| A tuple of ndim integers giving the size in bytes to access
| each element for each dimension of the array or None for C
| contiguous.
|
| suboffsets
| A tuple of ndim integers used internally for PIL-style arrays
| or None. |
|
Date |
User |
Action |
Args |
2012-09-03 16:04:40 | belopolsky | set | recipients:
+ belopolsky, skrah |
2012-09-03 16:04:40 | belopolsky | set | messageid: <1346688280.1.0.169252770373.issue15855@psf.upfronthosting.co.za> |
2012-09-03 16:04:38 | belopolsky | link | issue15855 messages |
2012-09-03 16:04:38 | belopolsky | create | |
|