On Sat, Sep 19, 2020 at 8:59 AM Dennis Sweeney <sweeney.dennis...@gmail.com> 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 -- 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/Q2WIIPAC56BODWNVGYMHI6UHEG57K4EK/ Code of Conduct: http://python.org/psf/codeofconduct/