[ZODB-Dev] ZODB 3.2.4 strange getattr, hasattr behaviour

Syver Enstad syver at inout.no
Tue Nov 23 06:33:07 EST 2004


I get None when I do getattr on a not existing attribute in a
Persistent derived class (instead of AttributeError) . This doesn't
happen all the time but occurs in an upgrade script. hasattr for the
same attribute also returns True, but it is not in self.__dict__ and
delattr raises KeyError.

I will investigate further and I see what I find out. Maybe it is
something strange in my code which causes this behaviour.





More information about the ZODB-Dev mailing list