Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!news2.euro.net!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'completeness': 0.07; 'python': 0.09; '1000.': 0.09; 'received:155': 0.09; 'rounding': 0.09; 'sub': 0.09; ';-)': 0.11; 'thread': 0.11; 'do,': 0.15; '*any*': 0.16; 'disclaimers': 0.16; 'disclaimers,': 0.16; 'from:addr:jpmorgan.com': 0.16; 'received:155.180': 0.16; 'received:159.53': 0.16; 'received:169.70': 0.16; 'received:169.70.184': 0.16; 'received:bankone.net': 0.16; 'received:exchad.jpmchase.net': 0.16; 'received:jpmchase.com': 0.16; 'received:jpmchase.net': 0.16; 'received:svr.bankone.net': 0.16; 'securities,': 0.16; 'url:disclosures': 0.16; 'url:jpmorgan': 0.16; 'wrote:': 0.17; "shouldn't": 0.17; 'changes': 0.20; 'minor': 0.22; 'subject:skip:i 10': 0.22; 'received:169.254': 0.24; 'least': 0.25; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'accuracy': 0.27; 'andrew': 0.27; 'subject:list': 0.28; 'consistency': 0.29; 'surprised': 0.29; 'unlikely': 0.29; 'objects': 0.29; 'received:169': 0.29; "i'm": 0.29; 'header:Received:8': 0.30; 'lists': 0.31; 'morning': 0.32; 'to:addr:python-list': 0.33; 'lists.': 0.35; 'nov': 0.35; 'charset :us-ascii': 0.36; 'far': 0.37; 'subject:: ': 0.38; 'easier': 0.38; 'object': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; 'subject:-': 0.40; 'information,': 0.63; 'url:email': 0.63; 'more': 0.63; 'legal': 0.65; 'subject': 0.66; 'purchase': 0.67; 'sale': 0.76; 'actually,': 0.84; 'received:169.254.8': 0.84; 'to:name:python': 0.84 X-DKIM: OpenDKIM Filter v2.1.3 sf3.jpmchase.com qA6Hcukd005882 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpmorgan.com; s=smtpout; t=1352223536; bh=UJmuRyDVqfHSUJOUjH6fOyHInXBkDHgITQAkBLD6tao=; h=From:To:Subject:Date:Message-ID:References:In-Reply-To: Content-Transfer-Encoding:MIME-Version:Content-Type; b=d2CErvjhtPqRA6d1hhc5DRgHAnhwij85ZpNaafL9ejENHiicguttuMbRs1Aj267nE neXHleWDc1d9QFm0thWZDByZFMwPIqOi45HoEvTCsZqIg17krvugby41tD3wSkdN/u dfTi/8s+6XokyWe5kaOP9cFlkKke/LEFL6AaT2hQ= From: "Prasad, Ramit" To: Python Subject: RE: Multi-dimensional list initialization Thread-Topic: Multi-dimensional list initialization Thread-Index: AQHNuzXEqOr0cXvBdU2FrAoICmLR4JfcWnmAgAAIRgCAAAfkAIAAOEUAgAAEYwCAACVxgIAAEDsAgAA0i6A= Date: Tue, 6 Nov 2012 17:32:12 +0000 References: <50978323$0$6908$e4fe514c@news2.news.xs4all.nl> <5098A55C.3090201@r3dsolutions.com> <5098C873.2000200@r3dsolutions.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.67.79.47] Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-DLP-FWD: Yes Content-Type: text/plain; charset="us-ascii" 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1352223730 news.xs4all.nl 6854 [2001:888:2000:d::a6]:42952 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:32836 Ian Kelly wrote:=0D=0A> =0D=0A> On Tue, Nov 6, 2012 at 1:21 AM, Andrew Robi= nson=0D=0A> =0D=0A[snip]=0D=0A> > See if you can find *any* python program = where people desired the=0D=0A> > multiplication to have the die effect tha= t changing an object in one of the=0D=0A> > sub lists -- changes all the ob= jects in the other sub lists=2E=0D=0A> >=0D=0A> > I'm sure you're not going= to find it -- and even if you do, it's going to be=0D=0A> > 1 program in 1= 000's=2E=0D=0A> =0D=0A> Per the last thread where we discussed extremely ra= re scenarios,=0D=0A> shouldn't you be rounding "1 in 1000s" up to 20%? ;-)= =0D=0A=0D=0AActually, I would be surprised if it was even 1 in 1000=2E=0D= =0AOf course, consistency makes it easier to learn and *remember*=2E =0D=0A= I value that far more than a minor quirk that is unlikely to =0D=0Abother m= e now that I know of it=2E Well, at least not as long as =0D=0AI do not for= get my morning coffee/tea :)=0D=0A=0D=0A=0D=0A~Ramit=0D=0A=0D=0A=0D=0AThis = email is confidential and subject to important disclaimers and=0D=0Aconditi= ons including on offers for the purchase or sale of=0D=0Asecurities, accura= cy and completeness of information, viruses,=0D=0Aconfidentiality, legal pr= ivilege, and legal entity disclaimers,=0D=0Aavailable at http://www=2Ejpmor= gan=2Ecom/pages/disclosures/email=2E