New submission from Thomas Herve <[EMAIL PROTECTED]>: A recent change in heapq implements it in terms of less-than: http://svn.python.org/view/python/trunk/Modules/_heapqmodule.c?rev=63827&r1=63675&r2=63827
Unfortunately, it breaks usage of heapq when a class only implements __le__ and not __ge__ or __cmp__. This is done this way in Twisted: http://twistedmatrix.com/trac/browser/trunk/twisted/internet/base.py#L159. 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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue3051> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com