summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-05-09 17:13:10 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-05-09 17:13:10 (GMT)
commit0a32f9c448a7d0fb29f2e6f4df26a2019498c45e (patch)
tree660d0c0cec1000a5f54705697d54b18d2844404e
parent3f3d36bd035ca34f52a46e9bb8ad39fa6d7687b9 (diff)
downloadcpython-0a32f9c448a7d0fb29f2e6f4df26a2019498c45e.zip
cpython-0a32f9c448a7d0fb29f2e6f4df26a2019498c45e.tar.gz
cpython-0a32f9c448a7d0fb29f2e6f4df26a2019498c45e.tar.bz2
can't handle classic classes here
-rw-r--r--Objects/typeobject.c1
1 files changed, 1 insertions, 0 deletions
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 @@ 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);
}