Kaydet (Commit) d0c92a4d authored tarafından Benjamin Peterson's avatar Benjamin Peterson

Merged revisions 76852 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76852 | benjamin.peterson | 2009-12-15 21:36:22 -0600 (Tue, 15 Dec 2009) | 1 line

  remove type_compare, since type_richcompare does the same trick
........
üst e667d632
...@@ -627,15 +627,6 @@ static PyGetSetDef type_getsets[] = { ...@@ -627,15 +627,6 @@ static PyGetSetDef type_getsets[] = {
{0} {0}
}; };
static int
type_compare(PyObject *v, PyObject *w)
{
/* This is called with type objects only. So we
can just compare the addresses. */
Py_uintptr_t vv = (Py_uintptr_t)v;
Py_uintptr_t ww = (Py_uintptr_t)w;
return (vv < ww) ? -1 : (vv > ww) ? 1 : 0;
}
static PyObject* static PyObject*
type_richcompare(PyObject *v, PyObject *w, int op) type_richcompare(PyObject *v, PyObject *w, int op)
...@@ -2747,7 +2738,7 @@ PyTypeObject PyType_Type = { ...@@ -2747,7 +2738,7 @@ PyTypeObject PyType_Type = {
0, /* tp_print */ 0, /* tp_print */
0, /* tp_getattr */ 0, /* tp_getattr */
0, /* tp_setattr */ 0, /* tp_setattr */
type_compare, /* tp_compare */ 0, /* tp_compare */
(reprfunc)type_repr, /* tp_repr */ (reprfunc)type_repr, /* tp_repr */
0, /* tp_as_number */ 0, /* tp_as_number */
0, /* tp_as_sequence */ 0, /* tp_as_sequence */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment