how to convert code that uses cmp to python3

Marko Rauhamaa marko at pacujo.net
Fri Apr 8 00:22:33 EDT 2016


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.
>
> 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>


Marko



More information about the Python-list mailing list