[ZODB-Dev] "getattr" can hide "ConflictError"

Dieter Maurer dieter at handshake.de
Thu Oct 2 01:48:50 EDT 2003


When Python's "getattr" is called with a default argument
("getattr(obj,name,default)") it will return the default
whenever "PyObject_getAttr(obj,name)" raises an exception.

This also happens, when the exception is a "ReadConflictError"
or "SystemExit" or another exception not directly related to
attribute lookup.


Dieter



More information about the ZODB-Dev mailing list