Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'reason,': 0.07; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'language': 0.14; 'enlighten': 0.16; 'evaluates': 0.16; 'knows?': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.17; 'subject:skip:i 10': 0.22; "i've": 0.23; 'header:X-Complaints-To:1': 0.28; 'subject:list': 0.28; 'chris': 0.28; "d'aprano": 0.29; 'steven': 0.29; 'becomes': 0.30; 'fri,': 0.30; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'code:': 0.33; 'that,': 0.34; 'nov': 0.35; 'pm,': 0.35; 'received:org': 0.36; 'but': 0.36; 'charset:us-ascii': 0.36; 'subject:: ': 0.38; 'mark': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'subject:-': 0.40; 'header:Received:5': 0.40; 'dennis': 0.91; 'either:': 0.91; 'received:108': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Multi-dimensional list initialization Date: Fri, 09 Nov 2012 14:34:41 -0500 Organization: > Bestiaria Support Staff < References: <5098d2ac$0$29980$c3e8da3$5496439d@news.astraweb.com> <5099bf7d$0$29980$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-68-176-78.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES 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: 36 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1352489673 news.xs4all.nl 6873 [2001:888:2000:d::a6]:60933 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33046 On Fri, 9 Nov 2012 17:07:09 +1100, Chris Angelico declaimed the following in gmane.comp.python.general: > On Fri, Nov 9, 2012 at 12:39 PM, Mark Lawrence wrote: > > On 07/11/2012 01:55, Steven D'Aprano wrote: > >> > >> > >> Who knows? Who cares? Nobody does: > >> > >> n -= n > >> > > > > But I've seen this scattered through code: > > > > x := x - x - x > > Can you enlighten us as to how this is better than either: > x := -x > or > x := 0 - x Of course, if one has a language that, for some reason, evaluates right-to-left (APL, anyone), then x := x - x - x becomes x := x - 0 -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/