On Sat, Feb 8, 2020 at 4:51 AM Shai Berger <[email protected]> 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 -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/3PXWFVP7NCZHXHCMLX3AXAS2DVUWL43V/ Code of Conduct: http://python.org/psf/codeofconduct/
