Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32774 > unrolled thread
| Started by | Demian Brecht <demianbrecht@gmail.com> |
|---|---|
| First post | 2012-11-05 07:01 -0800 |
| Last post | 2012-11-05 07:01 -0800 |
| 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: Multi-dimensional list initialization Demian Brecht <demianbrecht@gmail.com> - 2012-11-05 07:01 -0800
| From | Demian Brecht <demianbrecht@gmail.com> |
|---|---|
| Date | 2012-11-05 07:01 -0800 |
| Subject | Re: Multi-dimensional list initialization |
| Message-ID | <mailman.3291.1352127722.27098.python-list@python.org> |
On 2012-11-04, at 11:07 PM, Chris Rebert <clp2@rebertia.com> wrote:
> However, unlike a list object (as in your latter example), the object
> `None` is completely immutable (and what's more, a singleton value),
> so you just-so-happen *not to be able to* run into the same problem of
> mutating an object (assignment to an index of a list constitutes
> mutation of that list) that is referenced in multiple places, for you
> cannot mutate None in the first place!
Thanks for clearing that up Chris (and the link to the FAQ). I had thought about that after going to bed ("D'oh.. None is immutable.. *That's* gotta be why").
Demian Brecht
@demianbrecht
http://demianbrecht.github.com
Back to top | Article view | comp.lang.python
csiph-web