Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86909b5 commit 3255c63Copy full SHA for 3255c63
1 file changed
Lib/functools.py
@@ -81,7 +81,7 @@ def total_ordering(cls):
81
('__gt__', lambda self, other: not other >= self),
82
('__lt__', lambda self, other: not self >= other)]
83
}
84
- # Find comparisons not inherited from object.
+ # Find user-defined comparisons (not those inherited from object).
85
roots = [op for op in convert if getattr(cls, op, None) is not getattr(object, op, None)]
86
if not roots:
87
raise ValueError('must define at least one ordering operation: < > <= >=')
0 commit comments