[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnulib-tool.py: Fix removal of variables from GLMakefileTable.
From: |
Bruno Haible |
Subject: |
Re: gnulib-tool.py: Fix removal of variables from GLMakefileTable. |
Date: |
Fri, 29 Mar 2024 15:07:40 +0100 |
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