Hi Collin,

> You have to be a bit careful with unpacking tuples:
> 
>    (a, b) = (1, 2, 3)
>    Traceback (most recent call last):
>       File "<stdin>", line 1, in <module>
>     ValueError: too many values to unpack (expected 2)
>     (a, b, _) = (1, 2, 3)
>     print(f'{a} {b}')
>     1 2

Common Lisp, in this situation, silently discard the '3' value.
The way Python does it helps find signature changes of functions.

> I have been wanting to change empty list initialization from 'list()'
> to '[]' since we have both at the moment.

I agree. Let's keep list(...) only for a data conversion or list cloning.

Bruno




Reply via email to