[Python-Dev] Re: PEP 654 except* formatting

2021年10月05日 07:47:08 -0700

On 03/10/2021 16:47, Irit Katriel via Python-Dev wrote:
>> 1. except *E as e: // except *(E1, E2) as e:
>> 2. except* E as e: // except* (E1, E2) as e:
I vote #2, because `except *(e1, e2) as e:` could imply that this is splatting 
an arbitrary expression there - it looks like it will match any number of 
dynamically chosen exception types.
_______________________________________________
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/RGIAE2HMYQLPXWH5O5TNBNRXDQQ4UKAK/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to