Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!bcyclone01.am1.xlned.com!bcyclone01.am1.xlned.com!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.028 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'algorithm': 0.04; 'broken': 0.04; 'correct.': 0.07; 'broken.': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'feb': 0.22; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; '25,': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'but': 0.35; 'received:google.com': 0.35; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'establish': 0.61; '2015': 0.84; 'algorithm,': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=oUqcyTm/7cs1dtsFg+cGhqABd+XlTx4LTjuvXUPJ/jE=; b=c5hkNNdLuEfVrkdsaXt/5zUqfCFTYEjsq8/EWnqHareOBl0faECbuNbPzbk0ENSRug spCusFOQ9cQ9R/wBp9HOhNs+Cd8jM7waEFw2eHKDE+hzL42FbTAM0q3+h0agjyIqiLiE KD+jM00FwQ0xnlUbjImeLEMbylfuHlKUomowc6MmjH4mvDY4rexkB0SZNzNnIMZuvgHu sBPa7hro0x/6RPZ0fBDnkNk0Lk52h3AE7oguCOgcU1FEOw/m1rWXGVUHrcO+tqIJ6Znc fIKFxaBw6IjAPUP3f1ctwDz32NoQgHIup3vF4dmslyMpf/DFQHAZCy5FNdvfqy9cdnU0 sbEQ== X-Received: by 10.70.134.8 with SMTP id pg8mr6895392pdb.138.1424929942971; Wed, 25 Feb 2015 21:52:22 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <54ee572e$0$13007$c3e8da3$5496439d@news.astraweb.com> References: <1cf84559-3a63-4799-a879-ae8e513d387e@googlegroups.com> <54ee572e$0$13007$c3e8da3$5496439d@news.astraweb.com> From: Ian Kelly Date: Wed, 25 Feb 2015 22:51:42 -0700 Subject: Re: Bug in timsort!? To: Python Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 6 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424929951 news.xs4all.nl 2860 [2001:888:2000:d::a6]:45212 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3156 X-Received-Body-CRC: 2103412238 Xref: csiph.com comp.lang.python:86477 On Wed, Feb 25, 2015 at 4:13 PM, Steven D'Aprano wrote: > TimSort is an algorithm, and it is not broken. The algorithm is correct. The algorithm asserted an invariant but failed to actually establish it. That sounds broken to me.