From 0a32f9c448a7d0fb29f2e6f4df26a2019498c45e Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 9 May 2009 17:13:10 +0000 Subject: [PATCH] can't handle classic classes here --- Objects/typeobject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index eb3560b4c4..fabdd9db14 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -1216,6 +1216,7 @@ lookup_method(PyObject *self, char *attrstr, PyObject **attrobj) PyObject * _PyObject_LookupSpecial(PyObject *self, char *attrstr, PyObject **attrobj) { + assert(!PyInstance_Check(self)); return lookup_maybe(self, attrstr, attrobj); } -- 2.50.1