PEP 765: Disallow return/break/continue that exit a finally block

It’s the explicit purpose of except to suppress exceptions. That’s not the purpose of finally at all.

  • Errors should never pass silently.
  • Unless explicitly silenced.

according to PEP 20, which is as close to divine revelation as we have :wink:.

9 Likes