Re: [Python-Dev] suggestion for try/except program flow
March 27, 2009
3:19 p.m.
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.
6194
Age (days ago)
6194
Last active (days ago)
0 comments
1 participants
participants (1)
-
Hrvoje Niksic