Mercurial > cpython-lru_cache-weakref
diff Objects/floatobject.c @ 43420:0ff41b163f5b
Remove more cruft leftover from nb_coerce. Rename nb_coerce to
nb_reserved.
| author | Neil Schemenauer <nascheme@enme.ucalgary.ca> |
|---|---|
| date | Fri, 21 Sep 2007 20:19:23 +0000 |
| parents | 1f9eee08ab35 |
| children | 110ff614ec28 |
line wrap: on
line diff
--- a/Objects/floatobject.c Thu Sep 20 18:22:40 2007 +0000 +++ b/Objects/floatobject.c Fri Sep 21 20:19:23 2007 +0000 @@ -235,8 +235,7 @@ } /* Macro and helper that convert PyObject obj to a C double and store - the value in dbl; this replaces the functionality of the coercion - slot function. If conversion to double raises an exception, obj is + the value in dbl. If conversion to double raises an exception, obj is set to NULL, and the function invoking this macro returns NULL. If obj is not of float, int or long type, Py_NotImplemented is incref'ed, stored in obj, and returned from the function invoking this macro. @@ -1069,7 +1068,7 @@ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ - (coercion)0, /*nb_coerce*/ + 0, /*nb_reserved*/ float_trunc, /*nb_int*/ float_trunc, /*nb_long*/ float_float, /*nb_float*/
