Ad hoc lists vs ad hoc tuples

Floris Bruynooghe floris.bruynooghe at gmail.com
Thu Jan 28 08:32:23 CET 2010


On Jan 27, 10:15 pm, Terry Reedy <tjre... at udel.edu> wrote:
> On 1/27/2010 12:32 PM, Antoine Pitrou wrote:
>
> > Le Wed, 27 Jan 2010 02:20:53 -0800, Floris Bruynooghe a écrit :
>
> >> Is a list or tuple better or more efficient in these situations?
>
> > Tuples are faster to allocate (they are allocated in one single step) and
> > quite a bit smaller too.

Thanks for all the answers!  This is what I was expecting but it's
nice to see it confirmed.

Regards
Floris



More information about the Python-list mailing list