[Python-3000] Immutable lists

Greg Ewing greg.ewing at canterbury.ac.nz
Wed May 24 03:42:13 CEST 2006


Nick Coghlan wrote:

> This is exactly what I was trying to get at when I suggested using 
> "tuple[T]" as the notation for an arbitrary length tuple with elements 
> of type T

If tuple[T] is an arbitrary-length tuple, then how
do you spell a 1-tuple with element type T?

 > and "T1, T2" as the notation for a 2-tuple with the first
> element of type T1 and the second element of type T2.

It's been pointed out that making (T1, T2) equivalent to
tuple[T1, T2] leads to an inconsistency. That needs to be
resolved before taking this idea any further.

--
Greg




More information about the Python-3000 mailing list