terminological obscurity

Grant Edwards grante at visi.com
Mon May 24 17:30:43 EDT 2004


On 2004-05-24, Christos TZOTZIOY Georgiou <tzot at sil-tec.gr> wrote:

> Take a sequence of items.  If there is a point in comparing an item of
> the sequence to another, use a list.  If not, use a tuple.
>
> You can stop reading here.

Unless you want to use it as a key for a dictionary.  Then use
a tuple.

> Of course, you can always use a list instead of a tuple in all cases,
> with the minor exception of using a tuple when you want to index a
> mapping.

:)

-- 
Grant Edwards                   grante             Yow!  Where's th' DAFFY
                                  at               DUCK EXHIBIT??
                               visi.com            



More information about the Python-list mailing list