Is it safe to have the __hash__ method of a key object to return id(self)? I'm pretty sure it works for dictionaries or PersistentMappings but I don't know about BTrees. Neil