summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorJeroen Demeyer <J.Demeyer@UGent.be>2019-09-10 11:21:57 (GMT)
committerT. Wouters <thomas@python.org>2019-09-10 11:21:57 (GMT)
commit57ea33560662e0f20a3b0334bb20065771edf4da (patch)
tree5a8e4a23ec325a2a8ba6c121a123cd97339cbf06 /Misc
parentf958377b67c36a98d4df67b94c01eb29e3104f61 (diff)
downloadcpython-57ea33560662e0f20a3b0334bb20065771edf4da.zip
cpython-57ea33560662e0f20a3b0334bb20065771edf4da.tar.gz
cpython-57ea33560662e0f20a3b0334bb20065771edf4da.tar.bz2
bpo-37619: update_one_slot() should not ignore wrapper descriptors for wrong type (GH-14836)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2019-07-18-11-50-49.bpo-37619.X6Lulo.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-07-18-11-50-49.bpo-37619.X6Lulo.rst b/Misc/NEWS.d/next/Core and Builtins/2019-07-18-11-50-49.bpo-37619.X6Lulo.rst
new file mode 100644
index 0000000..8723d3d
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2019-07-18-11-50-49.bpo-37619.X6Lulo.rst
@@ -0,0 +1,3 @@
+When adding a wrapper descriptor from one class to a different class
+(for example, setting ``__add__ = str.__add__`` on an ``int`` subclass),
+an exception is correctly raised when the operator is called.