summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2012-08-30 10:09:09 (GMT)
committerStefan Krah <skrah@bytereef.org>2012-08-30 10:09:09 (GMT)
commit2a70535afde79e15c76b1ea50b7055ee0fa25349 (patch)
tree4a0430e07f3fbc8c80cbe055cfeee4cc391cfbd5 /Doc
parenta3f4a1660714900b61cf1d5132701a34e0171b67 (diff)
downloadcpython-2a70535afde79e15c76b1ea50b7055ee0fa25349.zip
cpython-2a70535afde79e15c76b1ea50b7055ee0fa25349.tar.gz
cpython-2a70535afde79e15c76b1ea50b7055ee0fa25349.tar.bz2
Issue #15724: Add versionchanged tags to the memoryview documentation.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst12
1 files changed, 10 insertions, 2 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 34d6f89..e493703 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -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::