[Zope-Checkins] CVS: Zope3/src/ZODB - Connection.py:1.114.2.1coptimizations.c:1.26.6.1 serialize.py:1.2.10.1

Tim Peters tim at zope.com
Fri Jan 9 15:12:40 EST 2004


[Jeremy]
>> I'd prefer you to leave myhasattr() in the code.  I've wasted days
>> life tracking down bugs caused by hasattr()s that swallowed
>> exceptions.

[Fred]
> What gets masked?  It shouldn't be anything but AttributeError.

Nope.  You're thinking of getattr() there.  hasattr() swallows all
exceptions (even SystemExit!).




More information about the Zope-Checkins mailing list