On Thu, Jul 07, 2005 at 12:38:38PM -0600, Neil Schemenauer wrote: > Something like this would probably work (untested): > > def __cmp__(self, other): > if self is other: > return 0 > return cmp(self, other) Oops, no. Don't do that. The ordering of btree keys *must* be stable. You can't compare memory addresses or your btree will become insane. Neil