Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8222 > unrolled thread

Re: what happens inside?

Started byTim Rowe <digitig@gmail.com>
First post2011-06-22 17:08 +0100
Last post2011-06-22 17:08 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: what happens inside? Tim Rowe <digitig@gmail.com> - 2011-06-22 17:08 +0100

#8222 — Re: what happens inside?

FromTim Rowe <digitig@gmail.com>
Date2011-06-22 17:08 +0100
SubjectRe: what happens inside?
Message-ID<mailman.287.1308758923.1164.python-list@python.org>
On 22 June 2011 16:53, Andrew Berg <bahamutzero8825@gmail.com> wrote:
> On 2011.06.22 10:45 AM, Chetan Harjani wrote:
>> why tuples are immutable whereas list are mutable?
> Tuples are more efficient and more appropriate for a list of items that
> doesn't need to change.

And also it sometimes useful to be sure that something can't change.
In particular, efficient dictionary implementations need the keys to
be immutable, because it you change a key it /really/ fouls up the
look-up.

-- 
Tim Rowe

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web