[New-bugs-announce] [issue3051] heapq change breaking compatibility

Thomas Herve report at bugs.python.org
Fri Jun 6 14:37:38 CEST 2008

New submission from Thomas Herve <therve at free.fr>:

A recent change in heapq implements it in terms of less-than:

Unfortunately, it breaks usage of heapq when a class only implements
__le__ and not __ge__ or __cmp__. This is done this way in Twisted:

If not mandatory, it would be nice if this change was reverted or that a
backward compatible change was done instead.

components: Library (Lib)
messages: 67765
nosy: therve
severity: normal
status: open
title: heapq change breaking compatibility
versions: Python 2.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list