Scott David Daniels wrote: Sorry, I blew the __ne__:
>> def __ne__(self, other):
>> return not isinstance(other, Heap) or self.h != other.h
> return not isinstance(other, self.__class__) and sorted(
> self.h) != sorted(other.h)
Should be:
return not isinstance(other, self.__class__) or sorted(
self.h) != sorted(other.h)
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
