Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3255c63

Browse files
committed
Improve comment
1 parent 86909b5 commit 3255c63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/functools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def total_ordering(cls):
8181
('__gt__', lambda self, other: not other >= self),
8282
('__lt__', lambda self, other: not self >= other)]
8383
}
84-
# Find comparisons not inherited from object.
84+
# Find user-defined comparisons (not those inherited from object).
8585
roots = [op for op in convert if getattr(cls, op, None) is not getattr(object, op, None)]
8686
if not roots:
8787
raise ValueError('must define at least one ordering operation: < > <= >=')

0 commit comments

Comments
 (0)