[Python-ideas] Heap data type

Gerald Britton gerald.britton at gmail.com
Tue Apr 21 15:44:22 CEST 2009

Ok thanks.  Any idea what the uptake is on Py3?  I know that the
projects I work on are not even talking about moving in that direction
due to the significant migration effort.  Also, I hear that
performance is an issue, though that might be improve over the longer

On Tue, Apr 21, 2009 at 1:13 AM, Stefan Behnel <stefan_ml at behnel.de> wrote:
> Gerald Britton wrote:
>> On Mon, Apr 20, 2009 at 1:41 PM, Terry Reedy wrote:
>>> Gerald Britton wrote:
>>>> May I suggest that you implement an interface similar to the sort()
>>>> method for list objects:
>>>> =========================
>>>> sort([cmp[, key[, reverse]]])
>>> Cmp(), .__cmp__, cmp=xxx, etc, are gone in Py3.
>> Is this only targeting 3.x?  I think it would be useful in 2.x as well.
> 1) I think the usual approach is to implement it for Py3, then backport it.
> 2) Since we already know that code that uses cmp=xyz is not Py3 compatible,
> there is little use in providing this parameter for a new data type, so
> that new code ends up being broken in the future.
> Stefan
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas

Gerald Britton

More information about the Python-ideas mailing list