[Python-3000] Immutable lists

Guido van Rossum guido at python.org
Thu May 25 16:10:25 CEST 2006


On 5/25/06, Nick Coghlan <ncoghlan at gmail.com> wrote:
> Yes - I'm saying tuple[T1, T2] should describe an arbitrary length tuple whose
> elements are 2-tuples, *instead* of being equivalent to (T1, T2).
>
> Since we have 2 notations (a tuple of type descriptions, and a subscript
> operation on the tuple type) and 2 concepts to be expressed (a type
> description for a heterogeneous tuple and a type description for an arbitrary
> length tuple), it makes sense to me to use one of the notations for each
> concept rather than making the two notations mean the same thing.

This is growing on me.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list