summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2016-01-27 05:44:16 (GMT)
committerRaymond Hettinger <python@rcn.com>2016-01-27 05:44:16 (GMT)
commit3743432302e9b31d4fe0db31485543a306057fc8 (patch)
tree44b17d2b0ee2b6d75db1aaa4c931527ab1a35020 /Misc/NEWS
parentd4e51f45a9b82832e95dcc55ba0d8f53ca725824 (diff)
downloadcpython-3743432302e9b31d4fe0db31485543a306057fc8.zip
cpython-3743432302e9b31d4fe0db31485543a306057fc8.tar.gz
cpython-3743432302e9b31d4fe0db31485543a306057fc8.tar.bz2
Issue #26194: Fix undefined behavior for deque.insert() when len(d) == maxlen
Diffstat (limited to 'Misc/NEWS')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 75df532..5e461f9 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -17,6 +17,10 @@ Core and Builtins
Python 3.5.1 to hide the exact implementation of atomic C types, to avoid
compiler issues.
+- Issue #26194: Deque.insert() gave odd results for bounded deques that had
+ reached their maximum size. Now, the insert will happen normally and then
+ any overflowing element will be truncated from the right side.
+
- Issue #25843: When compiling code, don't merge constants if they are equal
but have a different types. For example, ``f1, f2 = lambda: 1, lambda: 1.0``
is now correctly compiled to two different functions: ``f1()`` returns ``1``