On Fri, Oct 23, 2020 at 5:27 AM Steven D'Aprano <[email protected]> wrote:
> Background
> ----------
>
> Iterable unpacking assignment:
>
> values = (1, 2, 3)
> a, b, c = *values
>
> is a very successful and powerful technique in Python.
>
Your proposed syntax seems to rest on being similar to this syntax for
iterable unpacking. But that asterisk isn't valid syntax, so I'm confused.
This is valid syntax:
a, b, c, *rest = values
but that doesn't make it make sense to write `... = **values` as you
suggest. And this is valid:
a, b, c = [*values]
but that asterisk has nothing to do with assignment.
_______________________________________________
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/QX4RBF2XBYG5LBEPJNZ7LS57HGPD4FHU/
Code of Conduct: http://python.org/psf/codeofconduct/