Chad Netzer > Quick heap class (any error corrections are appreciated): > --------------------------------------------------------- > def __init__( self, heap=[] ): make that def __init__(self, heap = None): if heap is None: heap = [] Otherwise, all Heaps created with default args will share the same data. Andrew dalke at dalkescientific.com