When are immutable tuples *essential*? Why can't you just use lists *everywhere* instead?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Fri Apr 20 16:52:09 EDT 2007


En Fri, 20 Apr 2007 15:28:51 -0300, Bjoern Schliessmann  
<usenet-mail-0306.20.chr0n0ss at spamgourmet.com> escribió:

> Luis M. González wrote:
>
>> I don't remember exactly where I read about it, but Guido said
>> once that tuples are being kept mainly for historical reasons.
>
> Weren't tuples added when lists already existed?

Both listobject.c and tupleobject.c appear to had been checked in at the  
same time:

Revision 2167 - (view) (download) (as text) - [select for diffs]
Added Sun Oct 14 12:07:46 1990 UTC (16 years, 6 months ago) by guido
File length: 4965 byte(s)
Initial revision

And that's before the earliest tagged release I could find on svn, Python  
0.98

-- 
Gabriel Genellina



More information about the Python-list mailing list