Alexander Belopolsky added the comment: 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. ---------- title: memoryview methods are missing docstrings -> memoryview methods and data members are missing docstrings Added file: http://bugs.python.org/file27111/issue15855.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15855> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com