summaryrefslogtreecommitdiff
path: root/Objects/floatobject.c
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2007-09-21 20:19:23 +0000
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2007-09-21 20:19:23 +0000
commit16c7075164abe85f7cf750d6b63ee2b5ddaa2f54 (patch)
treefffa0bfcdd832cc4d5cb323748b74c13796344e6 /Objects/floatobject.c
parent8ce81f767a48e9e645c523137c7f83e49f79f986 (diff)
downloadcpython-git-16c7075164abe85f7cf750d6b63ee2b5ddaa2f54.tar.gz
Remove more cruft leftover from nb_coerce. Rename nb_coerce to
nb_reserved.
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r--Objects/floatobject.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index eb540e691a..3ef44f6395 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -235,8 +235,7 @@ format_float(char *buf, size_t buflen, PyFloatObject *v, int precision)
}
/* 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 @@ static PyNumberMethods float_as_number = {
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*/