[ZODB-Dev] [BTrees] Inconsistent equality checks
Dieter Maurer
dieter at handshake.de
Thu Nov 6 15:18:24 EST 2003
I learned yesterday that "BTrees" and friends ("Buckets", "Sets",
"TreeSets") do not define the standard equality check for
mappings/sets (but compare by identity).
Looking for an alternative, I met the following inconsitency:
a= OOSet((1,2,3))
b= OOSet((1,2,3))
a.keys() == b.keys()
--> 1
a= OOTreeSet((1,2,3))
b= OOTreeSet((1,2,3))
a.keys() == b.keys()
--> 0
We have the same inconsistency for "OOBucket", "OOBTree" and
"items".
--
Dieter
More information about the ZODB-Dev
mailing list