tuples vs lists
asda at sdarta.com
Sat Jan 8 10:03:44 EST 2005
Cheers - thanks for the feedback guys - pretty much answers the question for
'Two-Pull' it is then, thanks.
"Steve Horsley" <shoot at the.moon> wrote in message
news:croqtg$qo0$1 at news.freedom2surf.net...
> worzel wrote:
>> I get what the difference is between a tuple and a list, but why would I
>> ever care about the tuple's immuutability?
> Mainly for security and speed. Many library functions return info by
> a reference to an internally held tuple, and could be damaged /
> / corrupted if that internal data was modified by malicious code. If
> were mutable (lists) then it would be necessary to return a copy instead.
>> Also, do you say 'too-ple' or 'chu-ple' - if you get my drift. (tomato or
>> tomato kind of thing)
> Try 'Two-pull'.
More information about the Python-list