[issue3051] heapq change breaking compatibility

Raymond Hettinger report at bugs.python.org
Fri Jun 6 20:46:09 CEST 2008


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

It would be better if the Twisted code changed to define all of the 
rich comparisons instead of relying on an accidental and erroneous 
implementation detail.  The heapq change because other people's code 
that used __lt__ was breaking.  They had some basis for the complaint 
because heapq is documented to match sort() which is also based on 
__lt__ (and so is the bisect module).

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3051>
_______________________________________


More information about the Python-bugs-list mailing list