Improve comment

This commit is contained in:
Raymond Hettinger 2010-09-16 00:31:21 +00:00
parent 86909b50b7
commit 3255c63e28
1 changed files with 1 additions and 1 deletions

View 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: < > <= >=')