]> granicus.if.org Git - python/commitdiff
#10742: document readonly attribute of memoryviews.
authorGeorg Brandl <georg@python.org>
Tue, 28 Dec 2010 11:08:17 +0000 (11:08 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 28 Dec 2010 11:08:17 +0000 (11:08 +0000)
Doc/library/stdtypes.rst

index db2c9589da85b3545f5e7cc4c5e8be0e2914f8e8..be0c8d5c3d0237eaa120051db77d09ba68726217 100644 (file)
@@ -2433,6 +2433,10 @@ copying.  Memory is generally interpreted as simple bytes.
       A tuple of integers the length of :attr:`ndim` giving the size in bytes to
       access each element for each dimension of the array.
 
+   .. attribute:: readonly
+
+      A bool indicating whether the memory is read only.
+
    .. memoryview.suboffsets isn't documented because it only seems useful for C