Python proposal : inline exception handling

This document suggest to add a new syntax to the Python programming language.

Samples

List find replacement
i = mylist.index(x) except IndexError: -1
Dictionary get
x = mydict[k] except KeyError: None

Properties