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).

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346


_______________________________________________
Gnumed-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnumed-devel

Reply via email to