[BangPypers] Tuples vs Lists, perfromance difference

Vishal vsapre80 at gmail.com
Tue Dec 22 14:40:26 CET 2009


I was presuming that since tuples are immutable, like strings, and string
immutability increases performance (
so also, using tuple would improve performance over Lists.

is this presumption correct?

if it is, then as a practice, If I know the contents of my sequence at the
time of initialization and the fact that the sequence is not going to change
at runtime, would it be always good to use tuples instead of lists.

Any views on this one?

Thanks and best regards,
Vishal Sapre

More information about the BangPypers mailing list