On Sat, Feb 8, 2020 at 4:51 AM Shai Berger <s...@platonix.com> wrote: > To summarize, I am suggesting that > > except ExceptionType: > raise as OtherException(...) > > Have, more-or-less, the semantics of Python 2's: > > except ExceptionType: > traceback = sys.exc_info()[2] > raise OtherException, OtherException(...), traceback >
-1. That would mean that a line of code could phantom-raise an exception that it has no idea even exists. I'd much rather it be defined with semantics based on existing exception chaining (which is what Ram's original proposal was). ChrisA _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/3PXWFVP7NCZHXHCMLX3AXAS2DVUWL43V/ Code of Conduct: http://python.org/psf/codeofconduct/