[issue3051] heapq change breaking compatibility

Raymond Hettinger report at bugs.python.org
Tue May 18 09:59:02 CEST 2010


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

All six of the rich comparisons need to be implemented or the result is undefined.  This module never made guarantees for objects defining only one of the six.

We could change the pure python code to handle both __lt__ and __le__ but that would make it much harder to read and understand.  The C version supports and that is what runs by default.

----------
priority: normal -> low

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


More information about the Python-bugs-list mailing list