Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.100 X-Spam-Evidence: '*H*': 0.81; '*S*': 0.01; 'subject:Python': 0.05; 'things.': 0.05; 'cc:addr:python-list': 0.10; 'heap': 0.16; 'int.': 0.16; 'wrote:': 0.17; 'cc:2**0': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'fri,': 0.30; 'normally': 0.30; 'list': 0.35; 'nov': 0.35; 'replaced': 0.35; 'pm,': 0.35; "didn't": 0.36; 'should': 0.36; 'subject:: ': 0.38; 'fact': 0.38; 'received:192': 0.39; 'notice': 0.39; 'received:192.168': 0.40; 'here': 0.65; 'header:Reply-To:1': 0.68; 'received:74.208': 0.71; 'reply-to:no real name:2**0': 0.72; 'distracted': 0.84; 'thing,': 0.84; 'angel': 0.93 Date: Fri, 02 Nov 2012 22:03:17 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 MIME-Version: 1.0 To: Ian Kelly Subject: Re: Haskell -> Python References: <50944839.1070109@davea.name> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:L2gKw92hMtI4TLsnsM6zfL1OwllQI2oBhNo1bD0fxbB 8Nn/eKMTg8YgjOERVuCwT8GP/sL89Y5AgIOtF2QMZjiIjygifV J49XQxU7+rSEmpMJU+AlBHYuObsCv4Vc4QAtYi8sGp0pWPLtgj v48qrWFmoaVtj3uCfKBargcC5owV03I9AC9E8IxXtF+JWVnWWA ULB4VHSvEupBkT0UXlCNrDCd6sK8ZHyUK+gIqI2qoEi9x9E1Vh /2pfz9nyu+XdxbgpqRmHmTP4d3xEUF3GyibFmKx+xHVxSySGJf 36WXLYrq4OUYm5oCKAXMQqfatcqvonc+fx8d0YbS1ffP6KFrA= = Cc: Python X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: d@davea.name 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1351908225 news.xs4all.nl 6926 [2001:888:2000:d::a6]:33554 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:32679 On 11/02/2012 06:27 PM, Ian Kelly wrote: > On Fri, Nov 2, 2012 at 4:24 PM, Dave Angel wrote: >> Perhaps range(heap) should be replaced by range(len(heap)) > "heaps" is a list of ints per the OP, so "heap" is an int. You're right of course . I was distracted by the fact that a heap is normally a collection of thing, and didn't notice that here it is a count of those things. -- DaveA