[Python-checkins] r66783 - python/trunk/Objects/floatobject.c
andrew.kuchling
python-checkins at python.org
Sat Oct 4 09:33:49 CEST 2008
Author: andrew.kuchling
Date: Sat Oct 4 03:02:29 2008
New Revision: 66783
Log:
Use correct capitalization of NaN
Modified:
python/trunk/Objects/floatobject.c
Modified: python/trunk/Objects/floatobject.c
==============================================================================
--- python/trunk/Objects/floatobject.c (original)
+++ python/trunk/Objects/floatobject.c Sat Oct 4 03:02:29 2008
@@ -1548,7 +1548,7 @@
#ifdef Py_NAN
if (Py_IS_NAN(self)) {
PyErr_SetString(PyExc_ValueError,
- "Cannot pass nan to float.as_integer_ratio.");
+ "Cannot pass NaN to float.as_integer_ratio.");
return NULL;
}
#endif
@@ -1607,7 +1607,7 @@
"\n"
"Returns a pair of integers, whose ratio is exactly equal to the original\n"
"float and with a positive denominator.\n"
-"Raises OverflowError on infinities and a ValueError on nans.\n"
+"Raises OverflowError on infinities and a ValueError on NaNs.\n"
"\n"
">>> (10.0).as_integer_ratio()\n"
"(10, 1)\n"
More information about the Python-checkins
mailing list