Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Terry Reedy Newsgroups: comp.lang.python Subject: Re: how to convert code that uses cmp to python3 Date: Fri, 8 Apr 2016 02:20:15 -0400 Lines: 26 Message-ID: References: <57064D0D.1030701@rece.vub.ac.be> <87a8l5p6ek.fsf@nightsong.com> <874mbdi5ai.fsf@elektro.pacujo.net> <8760vtp1d3.fsf@nightsong.com> <87pou0hgqe.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de EIOeebnuplCfdLXpDNoqDQ1+6RlaHr4j7zPIjLerkfTg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'guido': 0.05; 'subject:code': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'trees': 0.09; 'jan': 0.11; 'canceled': 0.16; 'formerly': 0.16; 'kernel.': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 'subject:python3': 0.16; 'wrote:': 0.16; '>>>': 0.20; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'paul': 0.24; 'url:bugs': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'linux': 0.26; 'subject:that': 0.29; 'e.g.': 0.30; 'fixed': 0.31; 'implement': 0.32; 'url:python': 0.33; 'problem.': 0.35; 'there': 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'method': 0.37; 'received:org': 0.37; 'end': 0.39; 'well.': 0.40; 'to:addr:python.org': 0.40; 'ago.': 0.61; 'received:96': 0.63; 'different': 0.63; 'decided': 0.66; 'approaches': 0.72; 'presented': 0.72; "(don't": 0.84; 'now)': 0.84; 'cancelled': 0.91; 'erlang': 0.91; 'received:fios.verizon.net': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: pool-96-227-207-81.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 In-Reply-To: <87pou0hgqe.fsf@elektro.pacujo.net> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <57064D0D.1030701@rece.vub.ac.be> <87a8l5p6ek.fsf@nightsong.com> <874mbdi5ai.fsf@elektro.pacujo.net> <8760vtp1d3.fsf@nightsong.com> <87pou0hgqe.fsf@elektro.pacujo.net> Xref: csiph.com comp.lang.python:106652 On 4/8/2016 12:22 AM, Marko Rauhamaa wrote: > Paul Rubin : > >> Marko Rauhamaa 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: > > and fixed 1 1/2 years ago. -- Terry Jan Reedy