diff options
author | Oren Milman <orenmn@gmail.com> | 2018-09-11 18:46:55 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2018-09-11 18:46:55 (GMT) |
commit | 24bd50bdcc97d65130c07d6cd26085fd06c3e972 (patch) | |
tree | 910e8fbb4e6df9a32a19caaef1338c78a1f37d7a /Misc | |
parent | b4ec36200a959da70eba94c19826446a8efdffdd (diff) | |
download | cpython-24bd50bdcc97d65130c07d6cd26085fd06c3e972.zip cpython-24bd50bdcc97d65130c07d6cd26085fd06c3e972.tar.gz cpython-24bd50bdcc97d65130c07d6cd26085fd06c3e972.tar.bz2 |
closes bpo-31608: Fix a crash in methods of a subclass of _collections.deque with a bad __new__(). (GH-3788)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2017-10-29-10-37-55.bpo-31608.wkp8Nw.rst | 2 |
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 0000000..d657a86 --- /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. |