Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.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.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'method.': 0.07; 'variables': 0.07; 'method,': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'subject:class': 0.16; 'variables,': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'do.': 0.18; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'visible': 0.24; 'regardless': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; 'subject:skip:i 10': 0.31; 'class': 0.32; 'but': 0.35; 'received:google.com': 0.35; 'pm,': 0.38; 'does': 0.39; 'dave': 0.60; 'course': 0.61; "you're": 0.61; 'within': 0.65; 'details:': 0.80; 'angel': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=2LllrTNId2/tQW5JPA1lKmsWxHW11uJQCR9hCt6ac7w=; b=xHOBP5pbJSrOlj58EIzRdl5MfzObx6qNMcmfSc6mAP5PkpSSP3k80eTgEaQDzs6gY2 wFvCDLboLrY0HCRCvHD+62yVHRs7yv61E9hjMzuZNYXvQoz3tFmjlxcrsFejMRHZKzTD PeWirnJXZFcXsatJeULtlT3L0BjpcMQUZsxYaTOuM4WDmJ9vnk4LqDGM0Fp9pRXE2Wx7 OH31qYdqqSbGMZKrK2H+VPSkbXheQLjC67JvBSu9P3N3XZiIi1OBD49ySVFAcLzNyB0y oTK4tsHRsh74OsivmI5K+JEzAwjd5KJrl9QmqnCHojvP6iB22lSINGt1Tr3eWuQU1n+3 h88w== X-Received: by 10.49.134.102 with SMTP id pj6mr31875741qeb.49.1380576511893; Mon, 30 Sep 2013 14:28:31 -0700 (PDT) Sender: Ned Batchelder Date: Mon, 30 Sep 2013 17:28:30 -0400 From: Ned Batchelder User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Dave Angel Subject: Re: class implementation References: <6e338858-b9e6-4745-9959-35d7c0c7724e@googlegroups.com> <02724244-c924-4cf0-9656-71ade6e435c2@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: python-list@python.org 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1380576514 news.xs4all.nl 15901 [2001:888:2000:d::a6]:34950 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:55118 On 9/30/13 3:34 PM, Dave Angel wrote: > Python doesn't actually have variables, but the things it documents as > variables are local names within a method. Those are not visible > outside of the method, regardless of whether you're in a class or a > subclass. Why does this meme persist!? Of course Python has variables, they just don't work like C variables do. If you'd like to know the details: http://nedbatchelder.com/text/names.html --Ned.