[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:
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 <report at bugs.python.org>
<http://bugs.python.org/issue3051>
_______________________________________
More information about the New-bugs-announce
mailing list