July 29, 2021
6:18 a.m.
On Wed, Jul 28, 2021 at 11:58:37PM -0000, pavel@lexyr.com wrote:
To your dict argument: if there was a native Pythonic way to make a frozen list, what would a tuple's purpose be then, if not just another name for that?
We do have a Pythonic way to make a frozen list. It is spelled "tuple". I know that people often say that lists are intended for homogeneous data like [1, 2, 3] and tuples are intended for heterogeneous data like (1, 2.0, "three") but that's not mandatory. -- Steve