From: Benjamin Peterson Date: Sat, 9 May 2009 17:13:10 +0000 (+0000) Subject: can't handle classic classes here X-Git-Tag: v2.7a1~1228 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a32f9c448a7d0fb29f2e6f4df26a2019498c45e;p=python can't handle classic classes here --- 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); }