]> granicus.if.org Git - python/commitdiff
Issue #15724: Add versionchanged tags to the memoryview documentation.
authorStefan Krah <skrah@bytereef.org>
Thu, 30 Aug 2012 10:09:09 +0000 (12:09 +0200)
committerStefan Krah <skrah@bytereef.org>
Thu, 30 Aug 2012 10:09:09 +0000 (12:09 +0200)
Doc/library/stdtypes.rst

index 34d6f89612bca0922c49b3e35f1aab15b769eeb0..e49370394a1879a176776b1bf917578e289ce9dc 100644 (file)
@@ -2450,6 +2450,8 @@ copying.
       ``v == w`` for memoryview objects.
 
       .. versionchanged:: 3.3
+         Previous versions compared the raw memory disregarding the item format
+         and the logical array structure.
 
    .. method:: tobytes()
 
@@ -2479,8 +2481,10 @@ copying.
          >>> m.tolist()
          [1.1, 2.2, 3.3]
 
-      :meth:`tolist` is currently restricted to single character native formats
-      in :mod:`struct` module syntax.
+      .. versionchanged:: 3.3
+         :meth:`tolist` now supports all single character native formats in
+         :mod:`struct` module syntax as well as multi-dimensional
+         representations.
 
    .. method:: release()
 
@@ -2664,6 +2668,10 @@ copying.
       arbitrary format strings, but some methods (e.g. :meth:`tolist`) are
       restricted to native single element formats.
 
+      .. versionchanged:: 3.3
+         format ``'B'`` is now handled according to the struct module syntax.
+         This means that ``memoryview(b'abc')[0] == b'abc'[0] == 97``.
+
    .. attribute:: itemsize
 
       The size in bytes of each element of the memoryview::