[ZODB-Dev] BTree sets and unhashable objects
Roché Compaan
roche at upfrontsystems.co.za
Wed Jun 18 19:08:07 EDT 2003
* Casey Duncan <casey at zope.com> [2003-06-18 19:07]:
> AFAIK objects must compare consistently in order to work with sets. I don't
> think they have to be hashable.
All the classes in our app have the same base class as ancestor so it
should be easy to implement a __cmp__ in that base and make it work.
I decided to rather use the paths of the objects in the set operations.
It turns out that this will give me a huge performance boost in the code
that prepares sequences for the set operations.
--
Roché Compaan
Upfront Systems http://www.upfrontsystems.co.za
More information about the ZODB-Dev
mailing list