[Python-Dev] suggestion for try/except program flow

Hrvoje Niksic hrvoje.niksic at avl.com
Fri Mar 27 16:19:10 CET 2009

Mark Donald wrote:
> Thanks for the idea, but I believe it has a different outcome. You'd
> have to copy the generic handler into an except clause to get exactly
> the behaviour I'm looking for, which is worse than nesting the try
> blocks

Then simply change Exception to BaseException.  Since all exceptions 
should derive from BaseException, there should be no difference between 
that and a bare "except:" clause.

More information about the Python-Dev mailing list