commit | 0a32f9c448a7d0fb29f2e6f4df26a2019498c45e | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sat May 09 17:13:10 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Sat May 09 17:13:10 2009 +0000 |
tree | 660d0c0cec1000a5f54705697d54b18d2844404e | |
parent | 3f3d36bd035ca34f52a46e9bb8ad39fa6d7687b9 [diff] |
can't handle classic classes here
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index eb3560b..fabdd9d 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c
@@ -1216,6 +1216,7 @@ PyObject * _PyObject_LookupSpecial(PyObject *self, char *attrstr, PyObject **attrobj) { + assert(!PyInstance_Check(self)); return lookup_maybe(self, attrstr, attrobj); }