On 11/02/2012 06:27 PM, Ian Kelly wrote:
> On Fri, Nov 2, 2012 at 4:24 PM, Dave Angel <d...@davea.name> 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 <blush>.  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

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to