On Sat, Sep 19, 2020 at 8:59 AM Dennis Sweeney <[email protected]> wrote: > > I think it would be easiest to reason about if an Exception is always raised > when not everything is assigned to. Just like the behavior of other unpacking > assignment, either everything is assigned or there's an error. My apologies > if that wasn't clear from the examples. >
The trouble with that is that it's really hard to use that if you want partial assignment. On the other hand, if the language provides partial assignment and you want full assignment or exception, you can add a marker at the end and validate it that way. But whichever way it's done, the proposal needs to be very clear about it. 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/Q2WIIPAC56BODWNVGYMHI6UHEG57K4EK/ Code of Conduct: http://python.org/psf/codeofconduct/
