how to convert code that uses cmp to python3

Terry Reedy tjreedy at udel.edu
Fri Apr 8 02:20:15 EDT 2016


On 4/8/2016 12:22 AM, Marko Rauhamaa wrote:
> Paul Rubin <no.email at nospam.invalid>:
>
>> Marko Rauhamaa <marko at pacujo.net> writes:
>>> Guido chose a different method to implement timers for asyncio. He
>>> decided to never remove canceled timers.

Only initially.  He approved a change immediately when presented with a 
concrete problem.

>> Oh my, that might not end well. There are other approaches that don't
>> need AVL trees and can remove cancelled timers, e.g. "timer wheels" as
>> used in Erlang and formerly (don't know about now) in the Linux
>> kernel.
>
> The issue is known. It has been tackled with a kind of a "garbage
> collection" scheme:
>
>     <URL: https://bugs.python.org/issue22448>

and fixed 1 1/2 years ago.


-- 
Terry Jan Reedy




More information about the Python-list mailing list