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.. index :: single: as_integer_ratio()
2121
@@ -25,8 +25,8 @@ 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 equal to ``numerator/denominator `` where the denominator is positive .
29- If *denominator * is `` 0 `` , it raises a :exc: `ZeroDivisionError `.
28+ with a value equal to ``numerator/denominator ``.
29+ If *denominator * is zero , it raises a :exc: `ZeroDivisionError `.
3030
3131 The second version requires that *number * is an instance of
3232 :class: `numbers.Rational ` or has the :meth: `!as_integer_ratio ` method
@@ -125,7 +125,8 @@ another rational number, or from a string.
125125
126126 .. attribute :: denominator
127127
128- Denominator of the Fraction in lowest term.
128+ Denominator of the Fraction in lowest terms.
129+ Guaranteed to be positive.
129130
130131
131132 .. method :: as_integer_ratio()
0 commit comments