summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.3.rst
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2012-08-25 07:59:50 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2012-08-25 07:59:50 (GMT)
commit06e1ab0a6b51c35e4637bb82c3aa18548b6412b0 (patch)
treee24cfb1c7f4c51a518cdc3589b5a92c913ab4b76 /Doc/whatsnew/3.3.rst
parent5c0b1ca55ec76c0891a2ae0557e2e40391e1c74f (diff)
downloadcpython-06e1ab0a6b51c35e4637bb82c3aa18548b6412b0.zip
cpython-06e1ab0a6b51c35e4637bb82c3aa18548b6412b0.tar.gz
cpython-06e1ab0a6b51c35e4637bb82c3aa18548b6412b0.tar.bz2
Close #15573: use value-based memoryview comparisons (patch by Stefan Krah)
Diffstat (limited to 'Doc/whatsnew/3.3.rst')
-rw-r--r--Doc/whatsnew/3.3.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
index 968e788..27bf12d 100644
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -162,7 +162,6 @@ Features
and the view is read-only. (Contributed by Antoine Pitrou in
:issue:`13411`)
-
* Arbitrary slicing of any 1-D arrays type is supported. For example, it
is now possible to reverse a memoryview in O(1) by using a negative step.
@@ -178,6 +177,12 @@ API changes
now returns an integer (in accordance with the struct module syntax).
For returning a bytes object the view must be cast to 'c' first.
+* memoryview comparisons now use the logical structure of the operands
+ and compare all array elements by value. All format strings in struct
+ module syntax are supported. Views with unrecognised format strings
+ are still permitted, but will always compare as unequal, regardless
+ of view contents.
+
* For further changes see `Build and C API Changes`_ and `Porting C code`_ .
.. _pep-393: