On Thu, 6 Feb 2020 at 23:14, Guido van Rossum <[email protected]> wrote:
>
> How did we move from [*a,...] to print(*a,...)? They are quite different.
It was a good way to demonstrate evaluation order, as an expression
with a visible side effect. What the expression [print("a"), *None,
print("b")] prints before the "cannot unpack NoneType" exception,
demonstrates what order the expressions were evaluated in.
Paul
_______________________________________________
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/GWOMCNBZ3FKBSZ67WFDOM7GQEQ5LYSLG/
Code of Conduct: http://python.org/psf/codeofconduct/