@@ -1503,9 +1503,9 @@ float_as_integer_ratio(PyObject *v, PyObject *unused)
15031503PyDoc_STRVAR (float_as_integer_ratio_doc ,
15041504"float.as_integer_ratio() -> (int, int)\n"
15051505"\n"
1506- "Returns a pair of integers, whose ratio is exactly equal to the original\n"
1506+ "Return a pair of integers, whose ratio is exactly equal to the original\n"
15071507"float and with a positive denominator.\n"
1508- "Raises OverflowError on infinities and a ValueError on NaNs.\n"
1508+ "Raise OverflowError on infinities and a ValueError on NaNs.\n"
15091509"\n"
15101510">>> (10.0).as_integer_ratio()\n"
15111511"(10, 1)\n"
@@ -1692,7 +1692,7 @@ PyDoc_STRVAR(float_setformat_doc,
16921692"'IEEE, big-endian' or 'IEEE, little-endian', and in addition can only be\n"
16931693"one of the latter two if it appears to match the underlying C reality.\n"
16941694"\n"
1695- "Overrides the automatic determination of C-level floating point type.\n"
1695+ "Override the automatic determination of C-level floating point type.\n"
16961696"This affects how floats are converted to and from binary strings." );
16971697
16981698static PyObject *
@@ -1731,27 +1731,27 @@ PyDoc_STRVAR(float__format__doc,
17311731
17321732static PyMethodDef float_methods [] = {
17331733 {"conjugate" , (PyCFunction )float_float , METH_NOARGS ,
1734- "Returns self, the complex conjugate of any float." },
1734+ "Return self, the complex conjugate of any float." },
17351735 {"__trunc__" , (PyCFunction )float_trunc , METH_NOARGS ,
1736- "Returns the Integral closest to x between 0 and x." },
1736+ "Return the Integral closest to x between 0 and x." },
17371737 {"__round__" , (PyCFunction )float_round , METH_VARARGS ,
1738- "Returns the Integral closest to x, rounding half toward even.\n"
1739- "When an argument is passed, works like built-in round(x, ndigits)." },
1738+ "Return the Integral closest to x, rounding half toward even.\n"
1739+ "When an argument is passed, work like built-in round(x, ndigits)." },
17401740 {"as_integer_ratio" , (PyCFunction )float_as_integer_ratio , METH_NOARGS ,
17411741 float_as_integer_ratio_doc },
17421742 {"fromhex" , (PyCFunction )float_fromhex ,
17431743 METH_O |METH_CLASS , float_fromhex_doc },
17441744 {"hex" , (PyCFunction )float_hex ,
17451745 METH_NOARGS , float_hex_doc },
17461746 {"is_integer" , (PyCFunction )float_is_integer , METH_NOARGS ,
1747- "Returns True if the float is an integer." },
1747+ "Return True if the float is an integer." },
17481748#if 0
17491749 {"is_inf" , (PyCFunction )float_is_inf , METH_NOARGS ,
1750- "Returns True if the float is positive or negative infinite." },
1750+ "Return True if the float is positive or negative infinite." },
17511751 {"is_finite" , (PyCFunction )float_is_finite , METH_NOARGS ,
1752- "Returns True if the float is finite, neither infinite nor NaN." },
1752+ "Return True if the float is finite, neither infinite nor NaN." },
17531753 {"is_nan" , (PyCFunction )float_is_nan , METH_NOARGS ,
1754- "Returns True if the float is not a number (NaN)." },
1754+ "Return True if the float is not a number (NaN)." },
17551755#endif
17561756 {"__getnewargs__" , (PyCFunction )float_getnewargs , METH_NOARGS },
17571757 {"__getformat__" , (PyCFunction )float_getformat ,
0 commit comments