bpo-37819: Add Fraction.as_integer_ratio() (GH-15212) (GH-15215)
(cherry picked from commit f03b4c8a48f62134799d368b78da35301af466a3)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
diff --git a/Doc/library/fractions.rst b/Doc/library/fractions.rst
index b5a818e..58e7126 100644
--- a/Doc/library/fractions.rst
+++ b/Doc/library/fractions.rst
@@ -94,6 +94,13 @@
Denominator of the Fraction in lowest term.
+ .. method:: as_integer_ratio()
+
+ Return a tuple of two integers, whose ratio is equal
+ to the Fraction and with a positive denominator.
+
+ .. versionadded:: 3.8
+
.. method:: from_float(flt)
This class method constructs a :class:`Fraction` representing the exact