OT Re: [Zope] Simple Python question
Wed, 24 Jul 2002 16:49:40 +0200
Ed Leafe wrote:
> On Wednesday, July 24, 2002, at 09:54 AM, peter sabaini wrote:
>> why the aversion against try/except (just curious)?
> My general coding standards always prefer to make an explicit test
> rather than catching errors. I think the code is more readable, and is
> more in line with the thought process that created it. If there is a way
> to test something, I strongly prefer to use that, and only resort to
> catching errors if necessary.
i also think that explicit testing is a Good Thing(tm) but one could
argue that the absence of a variable is "sufficiently erroneous" to
warrant a try/except block... oh well, i guess i'm getting offtopic :-)