[Python-ideas] Change the array declaration syntax.

Terry Reedy tjreedy at udel.edu
Tue Feb 8 19:13:55 CET 2011


The only thing one can do with a tuple that cannot be done with a list 
is hash it for use as a dict key. And this is the only thing that would 
be gained with an immutable homogeneous array type. But tuple keys are 
typically so short (two or three items) that there is little need for 
anything else. Besides which, in 3.x, bytes are immutable sequences of 
(small) ints and are also available as dict keys.

-- 
Terry Jan Reedy




More information about the Python-ideas mailing list