Skip to content

Commit b07318f

Browse files
author
andrew.kuchling
committed
Use correct capitalization of NaN
git-svn-id: http://svn.python.org/projects/python/trunk@66783 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent fcf6353 commit b07318f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Objects/floatobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,7 @@ float_as_integer_ratio(PyObject *v, PyObject *unused)
15481548
#ifdef Py_NAN
15491549
if (Py_IS_NAN(self)) {
15501550
PyErr_SetString(PyExc_ValueError,
1551-
"Cannot pass nan to float.as_integer_ratio.");
1551+
"Cannot pass NaN to float.as_integer_ratio.");
15521552
return NULL;
15531553
}
15541554
#endif
@@ -1607,7 +1607,7 @@ PyDoc_STRVAR(float_as_integer_ratio_doc,
16071607
"\n"
16081608
"Returns a pair of integers, whose ratio is exactly equal to the original\n"
16091609
"float and with a positive denominator.\n"
1610-
"Raises OverflowError on infinities and a ValueError on nans.\n"
1610+
"Raises OverflowError on infinities and a ValueError on NaNs.\n"
16111611
"\n"
16121612
">>> (10.0).as_integer_ratio()\n"
16131613
"(10, 1)\n"

0 commit comments

Comments
 (0)