summaryrefslogtreecommitdiff
path: root/Misc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-09-11 13:41:57 -0700
committerGitHub <noreply@github.com>2018-09-11 13:41:57 -0700
commit253279c616d4f34287c5749df15e20eb2eb988d6 (patch)
tree31f09e36ec3e20e089c0ee945136feb5110805a9 /Misc
parent7a501def4fb98a1d6f15e4a5a006141d6027f948 (diff)
downloadcpython-git-253279c616d4f34287c5749df15e20eb2eb988d6.tar.gz
[2.7] closes bpo-31608: Fix a crash in methods of a subclass of _collections.deque with a bad __new__(). (GH-9179)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2017-10-29-10-37-55.bpo-31608.wkp8Nw.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2017-10-29-10-37-55.bpo-31608.wkp8Nw.rst b/Misc/NEWS.d/next/Library/2017-10-29-10-37-55.bpo-31608.wkp8Nw.rst
new file mode 100644
index 0000000000..d657a86973
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2017-10-29-10-37-55.bpo-31608.wkp8Nw.rst
@@ -0,0 +1,2 @@
+Raise a ``TypeError`` instead of crashing if a ``collections.deque`` subclass
+returns a non-deque from ``__new__``. Patch by Oren Milman.