[Python-checkins] r88063 - python/branches/py3k/Objects/typeobject.c
benjamin.peterson
python-checkins at python.org
Mon Jan 17 20:24:34 CET 2011
Author: benjamin.peterson
Date: Mon Jan 17 20:24:34 2011
New Revision: 88063
Log:
turn some checks into assertions, since they are implied by the caller
Reviewed by Georg.
Modified:
python/branches/py3k/Objects/typeobject.c
Modified: python/branches/py3k/Objects/typeobject.c
==============================================================================
--- python/branches/py3k/Objects/typeobject.c (original)
+++ python/branches/py3k/Objects/typeobject.c Mon Jan 17 20:24:34 2011
@@ -2945,10 +2945,8 @@
Py_ssize_t size;
PyObject *slots_a, *slots_b;
- if (base != b->tp_base)
- return 0;
- if (equiv_structs(a, base) && equiv_structs(b, base))
- return 1;
+ assert(base == b->tp_base);
+ assert(equiv_structs(a, base) && equiv_structs(b, base));
size = base->tp_basicsize;
if (a->tp_dictoffset == size && b->tp_dictoffset == size)
size += sizeof(PyObject *);
More information about the Python-checkins
mailing list