Path: csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.04; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'received:gator410.hostgator.com': 0.09; '~ethan~': 0.09; 'output': 0.12; 'wrote:': 0.14; '42,': 0.16; 'boxes)': 0.16; 'confusing.': 0.16; 'received:72.11': 0.16; 'received:72.11.125': 0.16; 'received:72.11.125.166': 0.16; 'received:gateway01.websitewelcome.com': 0.16; 'work"': 0.16; 'saying': 0.22; 'header:In-Reply-To:1': 0.22; 'subject:data': 0.26; "doesn't": 0.28; 'load': 0.28; 'subject:?': 0.29; '"this': 0.29; 'work:': 0.29; 'comment': 0.30; 'does': 0.31; "can't": 0.31; 'to:addr:python-list': 0.32; 'minor': 0.33; 'header:User-Agent:1': 0.35; 'point': 0.35; 'subject:What': 0.35; 'subject:use': 0.35; 'steven': 0.38; 'but': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'received:hostgator.com': 0.64; 'received:websitewelcome.com': 0.71; 'subject:other': 0.84; 'received:69.93': 0.91 Date: Mon, 09 May 2011 10:15:05 -0700 From: Ethan Furman User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: python-list@python.org Subject: Re: What other languages use the same data model as Python? References: <4dbd1dbf$0$29991$c3e8da3$5496439d@news.astraweb.com> <77f64071-b288-404c-8280-b2c61ba77f06@n10g2000yqf.googlegroups.com> <4dc12fb4$0$29991$c3e8da3$5496439d@news.astraweb.com> <7q1898-f3l.ln1@svn.schaathun.net> <9fd898-0el.ln1@svn.schaathun.net> <92f70aF9pqU1@mid.individual.net> <92kh9cFgdcU1@mid.individual.net> <4dc5fd42$0$29991$c3e8da3$5496439d@news.astraweb.com> <92os6dF5jbU1@mid.individual.net> <4dc7fa2f$0$29991$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: <4dc7fa2f$0$29991$c3e8da3$5496439d@news.astraweb.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator410.hostgator.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stoneleaf.us X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 16 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1304961326 news.xs4all.nl 81485 [::ffff:82.94.164.166]:59979 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:4997 Steven D'Aprano wrote: > But that's wrong! Names (little boxes) can't point to *slots in a list*, > any more than they can point to other names! This doesn't work: > > > --> L = [None, 42, None] > --> a = L[0] > --> L[0] = 23 > --> print(a) # This doesn't work! > 23 Minor nitpick -- having a comment saying "this doesn't work" then having output showing that it does is confusing. I had to load up the interpretor to make sure I was confused! ;) ~Ethan~