diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2008-10-04 01:02:29 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2008-10-04 01:02:29 (GMT) |
commit | bd7c4ca569633760c88be31dee12bd742b80e228 (patch) | |
tree | fb6f58a3593a1653aad2377122de1414d9a322d5 /Objects/floatobject.c | |
parent | 1ae415cbee7c35f00a167df84a6ca0759d66a4e5 (diff) | |
download | cpython-bd7c4ca569633760c88be31dee12bd742b80e228.zip cpython-bd7c4ca569633760c88be31dee12bd742b80e228.tar.gz cpython-bd7c4ca569633760c88be31dee12bd742b80e228.tar.bz2 |
Use correct capitalization of NaN
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r-- | Objects/floatobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 2faff34..881671c 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -1548,7 +1548,7 @@ float_as_integer_ratio(PyObject *v, PyObject *unused) #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 @@ PyDoc_STRVAR(float_as_integer_ratio_doc, "\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" |