On Fri, Dec 1, 2017 at 5:45 AM, Tres Seaver <tsea...@palladion.com> wrote: >> 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 _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com