summaryrefslogtreecommitdiffstats
path: root/Lib/functools.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-09-16 00:31:21 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-09-16 00:31:21 (GMT)
commit3255c63e28e52a5ffacf64cb8da62ffa2ad99643 (patch)
tree5116af684f0281834862e520a34f331a4e5ac1f1 /Lib/functools.py
parent86909b50b78bbeee2fc99d57b7fca9cdf1bb59ef (diff)
downloadcpython-3255c63e28e52a5ffacf64cb8da62ffa2ad99643.zip
cpython-3255c63e28e52a5ffacf64cb8da62ffa2ad99643.tar.gz
cpython-3255c63e28e52a5ffacf64cb8da62ffa2ad99643.tar.bz2
Improve comment
Diffstat (limited to 'Lib/functools.py')
-rw-r--r--Lib/functools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/functools.py b/Lib/functools.py
index 314c0dd..f45ba00 100644
--- a/Lib/functools.py
+++ b/Lib/functools.py
@@ -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: < > <= >=')