[ZODB-Dev] OOBTree: Persistent Objects as keys

Thomas Guettler zopestoller@thomas-guettler.de
Tue, 05 Feb 2002 14:56:29 +0100


Toby Dickenson wrote:

>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__ ?
>
Thank you Toby. Unfortunately I have different types of objects as keys. 
I think this won't be
that easy. I think it is not that easy to compare strings and different 
kind of objects with each other.

thomas