Skip to content
Merged
Prev Previous commit
Amend 7892a40 (same nitpick for float)
  • Loading branch information
skirpichev committed Feb 27, 2023
commit a2a84ae29fa2558590cf5252fae560052426815a
4 changes: 2 additions & 2 deletions Objects/clinic/floatobject.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Objects/floatobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@ float.as_integer_ratio

Return a pair of integers, whose ratio is exactly equal to the original float.

The ratio is in lowest terms and with a positive denominator. Raise
The ratio is in lowest terms and has a positive denominator. Raise
OverflowError on infinities and a ValueError on NaNs.

>>> (10.0).as_integer_ratio()
Expand All @@ -1561,7 +1561,7 @@ OverflowError on infinities and a ValueError on NaNs.

static PyObject *
float_as_integer_ratio_impl(PyObject *self)
/*[clinic end generated code: output=65f25f0d8d30a712 input=75db3b49d292f077]*/
/*[clinic end generated code: output=65f25f0d8d30a712 input=d5ba7765655d75bd]*/
{
double self_double;
double float_part;
Expand Down