On Mon, Aug 16, 2010 at 2:04 PM, Pedro Ferreira
> I think implementing a stable hash function for your type could make
> this work though.
> From what I read, ZODB doesn't use hash functions, relying on __cmp__
> instead. So, I guess I should make my class non-persistent and implement a
> __cmp__ function for it...
Right, implementing __cmp__ or all of the rich compare functions would
be best. The __hash__ is just used as the default backend for __cmp__
of object. It's probably better to not rely on that indirection and
implement compare directly.
For more information about ZODB, see the ZODB Wiki:
ZODB-Dev mailing list - ZODB-Dev@zope.org