[Python-checkins] r84843 - python/branches/py3k/Lib/functools.py

raymond.hettinger python-checkins at python.org
Thu Sep 16 02:31:21 CEST 2010


Author: raymond.hettinger
Date: Thu Sep 16 02:31:21 2010
New Revision: 84843

Log:
Improve comment

Modified:
   python/branches/py3k/Lib/functools.py

Modified: python/branches/py3k/Lib/functools.py
==============================================================================
--- python/branches/py3k/Lib/functools.py	(original)
+++ python/branches/py3k/Lib/functools.py	Thu Sep 16 02:31:21 2010
@@ -81,7 +81,7 @@
                    ('__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: < > <= >=')


More information about the Python-checkins mailing list