[Python-checkins] python/dist/src/Objects floatobject.c, 2.129,
2.130
mwh at users.sourceforge.net
mwh at users.sourceforge.net
Wed May 26 13:36:15 EDT 2004
Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12065
Modified Files:
floatobject.c
Log Message:
Remove float_compare as per
[ 899109 ] 1==float('nan')
which can now finally be closed, I think.
Index: floatobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/floatobject.c,v
retrieving revision 2.129
retrieving revision 2.130
diff -C2 -d -r2.129 -r2.130
*** floatobject.c 26 Feb 2004 13:16:03 -0000 2.129
--- floatobject.c 26 May 2004 17:36:12 -0000 2.130
***************
*** 353,364 ****
}
- static int
- float_compare(PyFloatObject *v, PyFloatObject *w)
- {
- double i = v->ob_fval;
- double j = w->ob_fval;
- return (i < j) ? -1 : (i > j) ? 1 : 0;
- }
-
static PyObject*
float_richcompare(PyObject *v, PyObject *w, int op)
--- 353,356 ----
***************
*** 853,857 ****
0, /* tp_getattr */
0, /* tp_setattr */
! (cmpfunc)float_compare, /* tp_compare */
(reprfunc)float_repr, /* tp_repr */
&float_as_number, /* tp_as_number */
--- 845,849 ----
0, /* tp_getattr */
0, /* tp_setattr */
! 0, /* tp_compare */
(reprfunc)float_repr, /* tp_repr */
&float_as_number, /* tp_as_number */
More information about the Python-checkins
mailing list