Re: Questions on exceptions

2006-08-21 Thread Steven D'Aprano
On Mon, 21 Aug 2006 00:40:14 -0700, sc_wizard29 wrote: > Hi everyone, > > I've just finished studying O'Reilly's "Learning python" and since I > come from the Java world, there are some things that bother me > concerning python's exception handling. > > In Java, all methods must declare the exce

Re: Questions on exceptions

2006-08-21 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, sc_wizard29 wrote: > Also, can someone explain me why there is no try...except...finally > statement ? AFAIK historical reasons. There where some concerns about ambiguity. But in Python 2.5 this form will become legal syntax. > For example, the following code snippet is

Questions on exceptions

2006-08-21 Thread sc_wizard29
Hi everyone, I've just finished studying O'Reilly's "Learning python" and since I come from the Java world, there are some things that bother me concerning python's exception handling. In Java, all methods must declare the exceptions throwed (I'm speaking of checked exceptions)... but this is not