[ZODB-Dev] George Bailey'd objects cause failure in FileStorage._loadBack

Toby Dickenson tdickenson@geminidataloggers.com
Fri, 1 Nov 2002 16:54:34 +0000


On Friday 01 November 2002 4:45 pm, Barry A. Warsaw wrote:

>     TD> Yes. I think the only purpose of POSKeyError is simply to
>     TD> provide a __str__ so that tracebacks contain readable strings,
>     TD> rather than 8 bytes of binary mash.
>
> Ah ok.  I'm using %r in my KeyError string so that should be a little
> better.

Maybe, but it does break the ability to retrieve the oid from the excepti=
on=20
value.

Possibly not important for KeyError, but it is used by things that catch=20
ConflictError.