8.4. try 文
式を伴わない except 節を使うなら、最後に書かなければならず、これは全ての例外に対応します。
IMO:except BaseException:と同じと理解した
except Exception:の方が望ましいと考えている
式を伴う except 節に対しては、その式が評価され、結果のオブジェクトが例外と "互換である (compatible)" 場合にその節が対応します。
except 節のスイートが実行される前に、例外が sys モジュールに格納されます。 except 節の中では、 sys.exception() を呼び出す事によってこの例外にアクセスすることができます。
except節でprint(repr(sys.exception()))
If the finally clause executes a return, break or continue statement, the saved exception is discarded.
try...finally 文の try スイート内で return 、 break 、または continue 文が実行された場合、 finally 節も、この文を '抜け出る途中に' 実行されます。
If the finally clause executes a break, continue or return statement, exceptions are not re-raised. This can be confusing and is therefore discouraged. From version 3.14 the compiler emits a SyntaxWarning for it