diff --git a/special-method-names.html b/special-method-names.html index b5eb365..174552f 100644 --- a/special-method-names.html +++ b/special-method-names.html @@ -670,6 +670,10 @@ class FieldStorage: x.__bool__() +
+

If you define a __lt__() method but no __gt__() method, Python will use the __lt__() method with operands swapped. However, Python will not combine methods. For example, if you define a __lt__() method and a __eq()__ method and try to test whether x <= y, Python will not call __lt__() and __eq()__ in sequence. It will only call the __le__() method. +

+

Classes That Can Be Serialized