summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-09-23 20:16:03 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-09-23 20:16:03 (GMT)
commita67c70d4a945e9fc5f37165d1c61e6955e0dc8c8 (patch)
tree2c6e02c4f8a2b6059ce9e971f880102055f8d7d5 /Objects
parent9227508dec49240d3e528d0a319048a3a2cb02c6 (diff)
downloadcpython-a67c70d4a945e9fc5f37165d1c61e6955e0dc8c8.zip
cpython-a67c70d4a945e9fc5f37165d1c61e6955e0dc8c8.tar.gz
cpython-a67c70d4a945e9fc5f37165d1c61e6955e0dc8c8.tar.bz2
Merged revisions 84984 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84984 | mark.dickinson | 2010-09-23 21:11:19 +0100 (Thu, 23 Sep 2010) | 5 lines Issue #9930: Remove an unnecessary type check in wrap_binaryfunc_r; this was causing reversed method calls like float.__radd__(3.0, 1) to return NotImplemented instead of the expected numeric value. ........
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index d2124f1..ab942c0 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -4049,10 +4049,6 @@ wrap_binaryfunc_r(PyObject *self, PyObject *args, void *wrapped)
if (!check_num_args(args, 1))
return NULL;
other = PyTuple_GET_ITEM(args, 0);
- if (!PyType_IsSubtype(Py_TYPE(other), Py_TYPE(self))) {
- Py_INCREF(Py_NotImplemented);
- return Py_NotImplemented;
- }
return (*func)(other, self);
}