30 Nov
2017
30 Nov
'17
7:45 p.m.
On Fri, Dec 1, 2017 at 5:45 AM, Tres Seaver
I would *not* add any spelling for an explicit bare-except equivalent. You would have to write:
val = name.strip()[4:].upper() except Exception as -1
Wouldn't that really need to be this instead, for a true 'except:' equivalence:
val = name.strip()[4:].upper() except BaseException as -1
Read the rejected PEP 463 for all the details and arguments. All this has been gone into. ChrisA