summaryrefslogtreecommitdiffstats
path: root/Objects/floatobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-08-27 17:17:03 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-08-27 17:17:03 (GMT)
commit46e1ce214b5711e8dae63a1b5a0a7aafb371baf0 (patch)
tree0230554f5bd4df8804946f5bb0634cefdbbbd2ae /Objects/floatobject.c
parent14e461d5b92000ec4e89182fa25ab0d5b5b31234 (diff)
parent9594942716a8f9c557b85d31751753d89cd7cebf (diff)
downloadcpython-46e1ce214b5711e8dae63a1b5a0a7aafb371baf0.zip
cpython-46e1ce214b5711e8dae63a1b5a0a7aafb371baf0.tar.gz
cpython-46e1ce214b5711e8dae63a1b5a0a7aafb371baf0.tar.bz2
Issue #18783: Removed existing mentions of Python long type in docstrings,
error messages and comments.
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r--Objects/floatobject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index fea83fa..4ac99bb 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -227,7 +227,7 @@ PyFloat_AsDouble(PyObject *op)
/* Macro and helper that convert PyObject obj to a C double and store
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,
+ obj is not of float or int type, Py_NotImplemented is incref'ed,
stored in obj, and returned from the function invoking this macro.
*/
#define CONVERT_TO_DOUBLE(obj, dbl) \
@@ -282,7 +282,7 @@ float_repr(PyFloatObject *v)
* When mixing float with an integer type, there's no good *uniform* approach.
* Converting the double to an integer obviously doesn't work, since we
* may lose info from fractional bits. Converting the integer to a double
- * also has two failure modes: (1) a long int may trigger overflow (too
+ * also has two failure modes: (1) an int may trigger overflow (too
* large to fit in the dynamic range of a C double); (2) even a C long may have
* more bits than fit in a C double (e.g., on a 64-bit box long may have
* 63 bits of precision, but a C double probably has only 53), and then
@@ -380,7 +380,7 @@ float_richcompare(PyObject *v, PyObject *w, int op)
goto Compare;
}
/* v and w have the same number of bits before the radix
- * point. Construct two longs that have the same comparison
+ * point. Construct two ints that have the same comparison
* outcome.
*/
{
@@ -445,7 +445,7 @@ float_richcompare(PyObject *v, PyObject *w, int op)
}
} /* else if (PyLong_Check(w)) */
- else /* w isn't float, int, or long */
+ else /* w isn't float or int */
goto Unimplemented;
Compare: