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: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a32f9c448a7d0fb29f2e6f4df26a2019498c45e;p=thirdparty%2FPython%2Fcpython.git can't handle classic classes here --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index eb3560b4c41a..fabdd9db1451 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); }