array and list

Paddy paddy3118 at googlemail.com
Fri Jan 18 09:41:40 EST 2008


> Paddy:
>
> > I guess 'under the hood' Python (& Perl?), arrays might be more like
> > an implementation of what the C programmer might call a linked list,
> > but even then there are differences as  most linked list examples
> > given in C tutorials are lists of the same type of object,....
>
> Both Python "array.array" and "list" are implemented as dyn arrays,
> not as lists. Only the good "deque" by Hettinger is something similar
> to a list (of small arrays).
>
> Bye,
> bearophile

Ta!



More information about the Python-list mailing list