who is simpler? try/except/else or try/except

Fabio Z Tessitore fabioztessitore at libero.it
Sun Aug 12 20:18:32 CEST 2007


Il Sun, 12 Aug 2007 20:06:23 +0200, Peter Otten ha scritto:

[cut]
> at the same time introducing the implicit
> constraint that the latter does not fail with <Error I can handle>.
> Therefore the original code gives the reader a much clearer notion of
> the author's intention.  This may not be a problem for the simple code
> at hand but is definitely a bad habit to get into.
> 

thanks Peter, that's the kind of opinion I'm interesting to.

bye
Fabio



More information about the Python-list mailing list