[py3k] note about future warning on __eq__ vs __hash__ stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 10 Oct 2013 12:40:23 +0200
branchstable
changeset 9279 0814b9dd9bf3
parent 9278 a7894d5f00bb
child 9280 bae0caa8477a
[py3k] note about future warning on __eq__ vs __hash__ Closes #3179561.
utils.py
--- a/utils.py	Tue Oct 01 12:11:00 2013 +0200
+++ b/utils.py	Thu Oct 10 12:40:23 2013 +0200
@@ -195,6 +195,8 @@
         if isinstance(other, RepeatList):
             return other._size == self._size and other._item == self._item
         return self[:] == other
+    # py3k future warning "Overriding __eq__ blocks inheritance of __hash__ in 3.x"
+    # is annoying but won't go away because we don't want to hash() the repeatlist
     def pop(self, i):
         self._size -= 1