Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8222 > unrolled thread
| Started by | Tim Rowe <digitig@gmail.com> |
|---|---|
| First post | 2011-06-22 17:08 +0100 |
| Last post | 2011-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.
Re: what happens inside? Tim Rowe <digitig@gmail.com> - 2011-06-22 17:08 +0100
| From | Tim Rowe <digitig@gmail.com> |
|---|---|
| Date | 2011-06-22 17:08 +0100 |
| Subject | Re: 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
Back to top | Article view | comp.lang.python
csiph-web