]> granicus.if.org Git - python/commitdiff
can't handle classic classes here
authorBenjamin Peterson <benjamin@python.org>
Sat, 9 May 2009 17:13:10 +0000 (17:13 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 9 May 2009 17:13:10 +0000 (17:13 +0000)
Objects/typeobject.c

index eb3560b4c41a8df9183fc84123bb5a5b1052f63f..fabdd9db1451aaec14f9a8fda770a8d0cec8ac65 100644 (file)
@@ -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);
 }