]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Improve comment
authorRaymond Hettinger <python@rcn.com>
Thu, 16 Sep 2010 00:31:21 +0000 (00:31 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 16 Sep 2010 00:31:21 +0000 (00:31 +0000)
Lib/functools.py

index 314c0dd906de31c506749ddf562b638d6f564d19..f45ba00070b5014492fdb8ce3afa92a46e5cc8a2 100644 (file)
@@ -81,7 +81,7 @@ def total_ordering(cls):
                    ('__gt__', lambda self, other: not other >= self),
                    ('__lt__', lambda self, other: not self >= other)]
     }
-    # Find comparisons not inherited from object.
+    # Find user-defined comparisons (not those inherited from object).
     roots = [op for op in convert if getattr(cls, op, None) is not getattr(object, op, None)]
     if not roots:
         raise ValueError('must define at least one ordering operation: < > <= >=')