[Python-ideas] Python Users Aren't Perfect

Terry Reedy tjreedy at udel.edu
Fri Dec 16 02:16:40 CET 2011


On 12/15/2011 3:42 PM, Ned Batchelder wrote:

> This is another place where Python is inconsistent. We're told, "lists
> are for homogenous sequences of varying length, like a C array; tuples
> are for heterogenous aggregations of known length, like a C struct."

I have not been told that for several years, and I am pretty sure you 
will not find any such thing in the current docs. I consider it pretty 
much obsolete, as the differences that flowed from that idea are gone. 
In Python 3, tuples have all the non-mutating sequence methods that list 
does. The situation was much different in 1.4.

-- 
Terry Jan Reedy




More information about the Python-ideas mailing list