File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,13 +77,22 @@ another rational number, or from a string.
7777 :class: `numbers.Rational `, and implements all of the methods and
7878 operations from that class. :class: `Fraction ` instances are hashable,
7979 and should be treated as immutable. In addition,
80- :class: `Fraction ` has the following methods:
80+ :class: `Fraction ` has the following properties and methods:
8181
8282 .. versionchanged :: 3.2
8383 The :class: `Fraction ` constructor now accepts :class: `float ` and
8484 :class: `decimal.Decimal ` instances.
8585
8686
87+ .. attribute :: numerator
88+
89+ Numerator of the Fraction in lowest term.
90+
91+ .. attribute :: denominator
92+
93+ Denominator of the Fraction in lowest term.
94+
95+
8796 .. method :: from_float(flt)
8897
8998 This class method constructs a :class: `Fraction ` representing the exact
You can’t perform that action at this time.
0 commit comments