From: Mark Dickinson Date: Sun, 1 Feb 2009 20:36:08 +0000 (+0000) Subject: Remove exception for non-NULL tp_compare that was introduced in r69188. X-Git-Tag: v3.1a1~315 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=995d4cdd623d10affca758e182344e1866584370;p=python Remove exception for non-NULL tp_compare that was introduced in r69188. --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index c6d6fc8ec3..59890d2698 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -3886,13 +3886,6 @@ PyType_Ready(PyTypeObject *type) goto error; } - /* Check reserved slots */ - if (type->tp_compare) { - PyErr_Format(PyExc_TypeError, - "type %s has tp_compare", - type->tp_name); - } - /* All done -- set the ready flag */ assert(type->tp_dict != NULL); type->tp_flags =