[Python-ideas] Variable-length, homogeneous tuple: why?

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Aug 18 08:19:36 CEST 2014


Andrew Barnert wrote:
> First, that's how the current typing.py interprets it: Tuple[str] is a
> homogeneous, arbitrary-length (although of course unchanging, because it's
> immutable) tuple of strings.

So how do you spell a heterogeneous tuple of length 1
containing a string?

-- 
Greg


More information about the Python-ideas mailing list