1414The :mod: `fractions ` module provides support for rational number arithmetic.
1515
1616
17- A Fraction instance can be constructed from a pair of integers , from
18- another rational number, or from a string.
17+ A Fraction instance can be constructed from a pair of rational numbers , from
18+ a single number, or from a string.
1919
2020.. class :: Fraction(numerator=0, denominator=1)
2121 Fraction(other_fraction)
@@ -25,7 +25,7 @@ another rational number, or from a string.
2525
2626 The first version requires that *numerator * and *denominator * are instances
2727 of :class: `numbers.Rational ` and returns a new :class: `Fraction ` instance
28- with value ``numerator/denominator ``. If *denominator * is `` 0 `` , it
28+ with a value equal to ``numerator/denominator ``. If *denominator * is zero , it
2929 raises a :exc: `ZeroDivisionError `. The second version requires that
3030 *other_fraction * is an instance of :class: `numbers.Rational ` and returns a
3131 :class: `Fraction ` instance with the same value. The next two versions accept
@@ -116,7 +116,8 @@ another rational number, or from a string.
116116
117117 .. attribute :: denominator
118118
119- Denominator of the Fraction in lowest term.
119+ Denominator of the Fraction in lowest terms.
120+ Guaranteed to be positive.
120121
121122
122123 .. method :: as_integer_ratio()
0 commit comments