[Zope-Coders] Weird OOBTree bug found

Guido van Rossum guido@python.org
Fri, 12 Oct 2001 13:14:07 -0400


> > This probably has to do with the default encoding.  Unicode strings
> > can be used to match ASCII strings, but not 8-bit strings containing
> > 8-bit characters: the 8-bit characters don't have a known encoding
> > (not everybody encodes their Python string objects in Latin-1) so the
> > comparison simply fails.
> 
> But this does not explain that I can access the key when I delete another
> key from the tree :)

That's probably because of the hashing -- not all keys are compared to
your key.

--Guido van Rossum (home page: http://www.python.org/~guido/)