diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-02-01 12:13:56 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-02-01 12:13:56 (GMT) |
commit | f02e0aaafd2476948047f0ce904af947f02d18ea (patch) | |
tree | 724366997190a0acf829f65a4f1e96d82c060889 /Objects/typeobject.c | |
parent | 211c6258294bf683935bff73a61ce3dd84070988 (diff) | |
download | cpython-f02e0aaafd2476948047f0ce904af947f02d18ea.zip cpython-f02e0aaafd2476948047f0ce904af947f02d18ea.tar.gz cpython-f02e0aaafd2476948047f0ce904af947f02d18ea.tar.bz2 |
Issue #1717: remove the cmp builtin function, the C-API functions
PyObject_Cmp, PyObject_Compare, and various support functions.
Diffstat (limited to 'Objects/typeobject.c')
-rw-r--r-- | Objects/typeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index b2ad89f..3f1df8d 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -2897,7 +2897,7 @@ same_slots_added(PyTypeObject *a, PyTypeObject *b) slots_a = ((PyHeapTypeObject *)a)->ht_slots; slots_b = ((PyHeapTypeObject *)b)->ht_slots; if (slots_a && slots_b) { - if (PyObject_Compare(slots_a, slots_b) != 0) + if (PyObject_RichCompareBool(slots_a, slots_b, Py_EQ) != 1) return 0; size += sizeof(PyObject *) * PyTuple_GET_SIZE(slots_a); } |