[Zope-Checkins] CVS: Zope3/lib/python/Interface - _InterfaceClass.py:1.11

Jim Fulton jim@zope.com
Mon, 18 Nov 2002 16:21:48 -0500


Update of /cvs-repository/Zope3/lib/python/Interface
In directory cvs.zope.org:/tmp/cvs-serv8758

Modified Files:
	_InterfaceClass.py 
Log Message:
Added a comment to try to clarify why the __cmp method is not the
__cmp__ method.


=== Zope3/lib/python/Interface/_InterfaceClass.py 1.10 => 1.11 ===
--- Zope3/lib/python/Interface/_InterfaceClass.py:1.10	Mon Nov 18 15:41:18 2002
+++ Zope3/lib/python/Interface/_InterfaceClass.py	Mon Nov 18 16:21:48 2002
@@ -219,6 +219,10 @@
         return self.__name__
 
     def __cmp(self, o1, o2):
+        # Yes, I did mean to name this __cmp, rather than __cmp__.
+        # It is a private method used by __lt__ and __gt__.
+        # I don't want to override __eq__ because I want the default
+        # __eq__, which is really fast.
         """Make interfaces sortable
 
         It would ne nice if: