[Zope] Simple Python question

Ed Leafe ed@leafe.com
Wed, 24 Jul 2002 10:27:29 -0400


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.

      ___/
     /
    __/
   /
  ____/
  Ed Leafe
  http://leafe.com/
  http://foxcentral.net