diff options
author | Raymond Hettinger <python@rcn.com> | 2016-01-27 05:44:16 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2016-01-27 05:44:16 (GMT) |
commit | 3743432302e9b31d4fe0db31485543a306057fc8 (patch) | |
tree | 44b17d2b0ee2b6d75db1aaa4c931527ab1a35020 /Misc/NEWS | |
parent | d4e51f45a9b82832e95dcc55ba0d8f53ca725824 (diff) | |
download | cpython-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/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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`` |