Is this considered black magic?
Michael Hudson
mwh at python.net
Mon Nov 12 06:30:03 EST 2001
Just van Rossum <just at letterror.com> writes:
> I think three-arg getattr() is faster than catching an exception.
It depends how often you expect it to fail. Personally, I would have
thought masking the error at all was the wrong response, but I haven't
read all of the thread that carefully...
Cheers,
M.
--
59. In English every word can be verbed. Would that it were so in
our programming languages.
-- Alan Perlis, http://www.cs.yale.edu/homes/perlis-alan/quotes.html
More information about the Python-list
mailing list