What do the PEP authors think about `except group`? Bikeshedding aside, that’s still the best alternative I’ve seen. It’s unambiguous, self-descriptive, and can’t be confused with unpacking syntax.
-Barry > On Oct 5, 2021, at 11:15, sascha.schlemmer--- via Python-Dev > <[email protected]> wrote: > > I agree that *(E1, E2) looks like unpacking, how about > > except *E1 as error: ... > except (*E1, *E2) as error: ... > > even better would be if we could drop the braces: > except *E1, *E2 as error: ... > _______________________________________________ > Python-Dev mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/[email protected]/message/PFYQC7XMYFAGOPU5C2YVMND2BQSIJPRC/ > Code of Conduct: http://python.org/psf/codeofconduct/
signature.asc
Description: Message signed with OpenPGP
_______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/SZNDJPKT7WNWJHG4UDJ6D3BU6IN5ZXZO/ Code of Conduct: http://python.org/psf/codeofconduct/
