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
low operator priority, maybe between
if – else and or.
Exception class can be omitted: y = 1/x except:0