Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: Multi-dimensional list initialization (http://www.velocityreviews.com/forums/t954219-re-multi-dimensional-list-initialization.html)

Demian Brecht 11-05-2012 03:01 PM

Re: Multi-dimensional list initialization
 

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






All times are GMT. The time now is 07:49 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.