[ZODB-Dev] RE: [Zope-Annce] ZODB 3.2.4 release candidate 1released

Tim Peters tim at zope.com
Mon Sep 13 22:53:04 EDT 2004


[Paul Winkler]
> Indeed, that's freaking horrible. Is there any known code that relies on
> "except KeyError:" catching POSKeyError?

Turns out that there is.  The storage interface (see other email to ChrisM)
defines that KeyError get raised if load() can't find a thing, and turns out
there's code all over ZODB relying on that.  For example, POSKeyError is
specific to FileStorage, but things like Connection.py have to work with all
storages.  If we had a time machine, 'twould be better to go back and change
the storage interface to specify POSKeyError instead.



More information about the ZODB-Dev mailing list