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

Casey Duncan casey at zope.com
Sat Jan 10 22:17:38 EST 2004


On Fri, 9 Jan 2004 15:12:40 -0500
"Tim Peters" <tim at zope.com> wrote:

> [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!).

Is this behavior considered a Python bug? If not, why?

-Casey



More information about the Zope-Checkins mailing list