[ZODB-Dev] OOBTree: Persistent Objects as keys
Toby Dickenson
tdickenson@geminidataloggers.com
Tue, 05 Feb 2002 10:32:54 +0000
On Tue, 05 Feb 2002 10:46:52 +0100, Thomas Guettler
<zopestoller@thomas-guettler.de> wrote:
> I have a strange problem with persistent objects as keys
>The __hash__ function of my class:
Are you sure its getting called? by the BTree?
BTrees store keys using their sort order, not hash value. I guess you
have not defined a __cmp__ ?
Toby Dickenson
tdickenson@geminidataloggers.com