diff --git a/special-method-names.html b/special-method-names.html index 9101033..4572783 100644 --- a/special-method-names.html +++ b/special-method-names.html @@ -355,7 +355,7 @@ class FieldStorage:

Classes That Act Like Numbers

-

Using the appropriate special methods, you can define your own classes that act like numbers. That is, you can add them, subtract them, and perform other mathematical operations on them. This is how fractions are implemented — the Fraction class implements these special methods, then you can do things like this: +

Using the appropriate special methods, you can define your own classes that act like numbers. That is, you can add them, subtract them, and perform other mathematical operations on them. This is how fractions are implemented — the Fraction class implements these special methods, then you can do things like this:

 >>> from fractions import Fraction