Path: csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'objects,': 0.07; 'cc:addr:python-list': 0.09; 'exist.': 0.09; 'pointers': 0.09; 'python': 0.10; 'things.': 0.15; '(implemented': 0.16; '(well,': 0.16; '4:25': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'pointers.': 0.16; 'too).': 0.16; 'wrote:': 0.16; 'pointer': 0.18; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'java': 0.22; 'sep': 0.22; 'variables.': 0.22; 'sat,': 0.23; 'header:In-Reply-To:1': 0.24; 'all.': 0.24; 'chris': 0.26; 'message-id:@mail.gmail.com': 0.27; 'see,': 0.27; "can't": 0.32; 'received:google.com': 0.35; 'should': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; '12,': 0.37; 'things': 0.38; 'names': 0.38; 'anything': 0.38; 'represent': 0.38; 'means': 0.39; 'here.': 0.62; "they're": 0.66; 'therefore': 0.67; 'special': 0.73; 'square': 0.76; 'batchelder': 0.84; 'chrisa': 0.84; 'circles': 0.84; 'to:none': 0.91 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=Pe1qoxgTzHlCzJwo07XFoxaKtyiGynZaO+UY87y6AIM=; b=KWDuES1y7MKL2Ek0/ygWJuSPYoUk6vmZlF/zd1kOSzlzRUh6DjEGW6zqskwOmI7CR0 DRoNtiaCC/L54uz8oDeeGGFPqttJrSoYFzBWmB5aPJAiBE143aiTDVGo9PmkPha6PDUw Tu3dS5DIvC/RkgpyO6PdNlJKwEHc4IcXhnv++mkRHvUR3NvI6XKGRush02tRcNtDs3Kk InZe7VCFlnih+7nIKvjkf5F4FXYWEKO7Rzvz5ZBd9YiEVKv4UrxEhaKlD4ejjtPjJ+5n s8RgEcHFRNPRBaCtL5OJJPnC1IQNWYeQuNiC9PbMU8sLWygTKf1R9m2eV89WAsXk1SEG TXnA== MIME-Version: 1.0 X-Received: by 10.50.50.198 with SMTP id e6mr2406396igo.13.1442039266839; Fri, 11 Sep 2015 23:27:46 -0700 (PDT) In-Reply-To: References: <14afe27e-0bd5-410f-8e64-0f31d496ebf2@googlegroups.com> <55F36B4C.9020007@gmail.com> <1442016698.95299.381478313.2487CA0E@webmail.messagingengine.com> Date: Sat, 12 Sep 2015 16:27:46 +1000 Subject: Re: Python handles globals badly. 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1442039270 news.xs4all.nl 23807 [2001:888:2000:d::a6]:43850 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:96415 On Sat, Sep 12, 2015 at 4:25 PM, Random832 wrote: > Chris Angelico writes: >> Here. Ned Batchelder explains it better than I can. > > See, those diagrams are perfect (well, almost, I think the names should > have square boxes too). They're arrows. They *point* at > things. *Pointers*. > > The boxes are variables. The circles represent special boxes > (implemented in C or Java or whatever) that hold things other than > pointers and therefore can't be used as Python variables. Okay, okay, you've won. They're pointers. Now, try to do anything with them. They *instantly* devolve to their referent objects, which means you cannot do anything with the pointer at all. Congratulations, pointers do not exist. ChrisA