py2.1->py2.3.3 __getattr__ confusion
Michael Hudson
mwh at python.net
Fri Jul 9 08:41:26 EDT 2004
Peter Otten <__peter__ at web.de> writes:
> Holger Joukl wrote:
>
> > an
> >>AttributeError instead of the current KeyError for nonexistent attributes.
> >
> > Thank you! Hmm, did I overlook that in the what?s new/release notes?
>
> I would think that code built on the assumption that arbitrary Exceptions
> get masked by getattr() is buggy and above quote from cvs supports this
> view. It's not a feature, it's a bug (fix).
Code that eats arbitrary exceptions is very, very evil. So there!
Cheers,
mwh
--
same software, different verbosity settings (this one goes to
eleven) -- the effbot on the martellibot
More information about the Python-list
mailing list