Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed4.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; ';-)': 0.03; 'cache': 0.07; 'memory.': 0.07; 'variables': 0.07; 'cc:addr :python-list': 0.11; 'python': 0.11; '05:42': 0.16; '12:57': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'variable.': 0.16; 'variables,': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'wed,': 0.18; 'cc:addr:python.org': 0.22; 'why.': 0.24; 'cc:2**0': 0.24; 'possibly': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'subject:the': 0.34; 'could': 0.34; 'received:google.com': 0.35; 'two': 0.37; 'filled': 0.38; 'pm,': 0.38; 'how': 0.40; 'numbers': 0.61; 'range': 0.61; 'different': 0.65; 'between': 0.67; '2015': 0.84; 'noise': 0.84; 'to:none': 0.92; 'from.': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=scs81B42XWTHg8CHV75l1oBynEDL4lbrNg3sTE70vXU=; b=RquJxJcs3nU03lXo8mL9sVCqdPEnZyD629CQWhpGggWl68qUU6lF6NF/Pg73vIo4O4 nh8n03851heoSQWhRF0Ok1dmkT/VVupxNX3u30YLq9mKpAOjYLY0Q7mRZGEuo4XARMAt E6kSlcyCZJl+pWJlqdpQBlCa25cVpz3jWCzFFrqNh2oHJ4918EE/MfXEcfr7VbJQhEF5 mUUNkd4M3bOP7LvdQO7DF5yaX2K67XawFDLo4NRvCYuL0y6AcW9Uq4Kx+YLu1wzBtwyH RatAYq/zLi8y31UHshPaV7nW9S6T0j0u8eRjq61t5mf84/X0nkvnBlmE90UatkDrCNvO MLtQ== MIME-Version: 1.0 X-Received: by 10.107.160.202 with SMTP id j193mr38093060ioe.43.1430885002879; Tue, 05 May 2015 21:03:22 -0700 (PDT) In-Reply-To: <5549831b$0$12997$c3e8da3$5496439d@news.astraweb.com> References: <87h9rvm576.fsf@Equus.decebal.nl> <871tixlmp6.fsf@Equus.decebal.nl> <750db03b-e393-43ff-9ccf-5cc050af7324@googlegroups.com> <87zj5jf15q.fsf@Equus.decebal.nl> <87r3qug69v.fsf@Equus.decebal.nl> <5549831b$0$12997$c3e8da3$5496439d@news.astraweb.com> Date: Wed, 6 May 2015 14:03:22 +1000 Subject: Re: Throw the cat among the pigeons From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1430885012 news.xs4all.nl 2951 [2001:888:2000:d::a6]:60449 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:90024 On Wed, May 6, 2015 at 12:57 PM, Steven D'Aprano wrote: > On Wed, 6 May 2015 05:42 am, Cecil Westerhof wrote: > >> I would say that a variable that is filled by a range is different as >> a normal variable. Do not ask me why. ;-) > > > I would say that you are wrong. If I have understood you correctly, that > cannot possibly be the case in Python, all Python variables work the same > way[1], and none of them can remember where they came from. My reading of the code was that one had two variables and the other had just one. Could be the noise in the numbers came from cache locality differences. No difference between the variables, just a peculiarity of CPUs and how they use memory. ChrisA