Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'processing.': 0.07; 'wrapper': 0.07; 'immutable': 0.09; 'mutable': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'suggest': 0.11; '[and': 0.16; 'immutability': 0.16; 'oct': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.17; 'latter': 0.22; 'specifically': 0.24; 'header :User-Agent:1': 0.26; 'url:wiki': 0.26; 'question': 0.27; 'c++': 0.27; 'header:X-Complaints-To:1': 0.28; 'this?': 0.28; 'url:wikipedia': 0.29; 'related': 0.30; 'comments': 0.33; 'choosing': 0.33; 'to:addr:python-list': 0.33; 'pm,': 0.35; 'received:org': 0.36; 'url:org': 0.36; 'author': 0.37; 'usual': 0.37; 'subject:: ': 0.38; 'sure': 0.38; 'url:en': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'world': 0.63; 'andrea': 0.84; 'received:myvzw.com': 0.84; 'why?': 0.84; 'rusi': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Neal Becker Subject: Re: Immutability and Python Date: Tue, 30 Oct 2012 16:45:33 -0400 References: <526d3d06-f9b8-49b3-a0e8-f18ac3b6488e@ah9g2000pbd.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Gmane-NNTP-Posting-Host: 225.sub-70-192-205.myvzw.com User-Agent: KNode/4.9.2 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1351629946 news.xs4all.nl 6882 [2001:888:2000:d::a6]:56030 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:32502 rusi wrote: > On Oct 29, 8:20 pm, andrea crotti wrote: > >> Any comments about this? What do you prefer and why? > > Im not sure how what the 'prefer' is about -- your specific num > wrapper or is it about the general question of choosing mutable or > immutable types? > > If the latter I would suggest you read > http://en.wikipedia.org/wiki/Alexander_Stepanov#Criticism_of_OOP > > [And remember that Stepanov is the author of C++ STL, he is arguably > as important in the C++ world as Stroustrup] The usual calls for immutability are not related to OO. They have to do with optimization, and specifically with parallel processing.