[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] using exceptions

From: Karsten Hilbert
Subject: Re: [Gnumed-devel] using exceptions
Date: Sun, 1 Jan 2006 12:49:59 +0100
User-agent: Mutt/1.5.11

On Sun, Jan 01, 2006 at 09:13:37AM +1100, Ian Haywood wrote:

> Karsten's points where around a) using proper exception classes
> rather than just a bare string (which is "old-fashioned" python)
> and b) only throwing exceptions for real errors, both of wich I agree with.
> You are right there is little point trying to catch "SyntaxError" for example.
> which is try I would add that we shouldn't be using bare "except:" clauses,
> but always spell out what errors we wish to catch

I agree with all three points.

The top level except handler (whatever that is supposed to
mean), however, should catch (nearly) all exceptions (but
exit anyways).

GPG key ID E4071346 @
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

reply via email to

[Prev in Thread] Current Thread [Next in Thread]