[ZODB-Dev] Comparing BTrees.IOBTree.IOSet(s)

Simon Pamies lists at bipbap.de
Sun Nov 2 11:27:24 EST 2003


Hi,

how can I compare two IOSets?

a = IOSet().update([1,2,3,4])
b = IOSet().update([1,2,3,4])
a == b
0

I can use difference(a,b) but I do not understand
why the __cmp__ method isn't overwritten. It would
be more intuitive or perhaps I'm using == the wrong way??

cheers
Simon




More information about the ZODB-Dev mailing list