Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.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.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; '(at': 0.04; 'model,': 0.05; 'subject:Python': 0.06; 'assign': 0.07; 'variables': 0.07; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; '~ethan~': 0.09; 'python': 0.11; 'containers': 0.16; 'fine;': 0.16; 'languages)': 0.16; 'received:gateway01.websitewelcome.com': 0.16; 'roy': 0.16; 'stepping': 0.16; 'value"': 0.16; 'wrote:': 0.18; 'variable': 0.18; "python's": 0.19; '>>>': 0.22; 'header :User-Agent:1': 0.23; 'people,': 0.24; 'holds': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'fixed': 0.29; 'am,': 0.29; 'are.': 0.31; 'container': 0.31; 'languages': 0.32; 'not.': 0.33; 'maybe': 0.34; 'no,': 0.35; 'but': 0.35; 'really': 0.36; 'similar': 0.36; 'two': 0.37; 'level': 0.37; 'massive': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'skip:u 10': 0.60; 'truly': 0.60; 'most': 0.60; 'helps': 0.61; 'received:173': 0.61; 'address': 0.63; 'name': 0.63; 'such': 0.63; 'subject:The': 0.64; 'teaching': 0.64; 'different': 0.65; 'great': 0.65; 'talking': 0.65; 'city': 0.66; 'received:69.56': 0.68; 'smith': 0.68; 'subjectcharset:utf-8': 0.72; 'subject:have': 0.80; 'ethan': 0.84; 'fail.': 0.84; 'furman': 0.84; 'metaphor': 0.84; 'metaphor.': 0.84; 'stone': 0.84; 'destination': 0.91 Date: Thu, 08 May 2014 16:09:43 -0700 From: Ethan Furman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: Re: The =?UTF-8?B?4oCcZG9lcyBQeXRob24gaGF2ZSB2YXJpYWJsZXM/4oCdIGQ=?= =?UTF-8?B?ZWJhdGU=?= References: <235C4BFA-9770-481A-9FCF-21C3F036769C@gmail.com> <5368681D.8070602@islandtraining.com> <85zjiuea37.fsf_-_@benfinney.id.au> <8738gmxgay.fsf@elektro.pacujo.net> <87y4ycfjuj.fsf@elektro.pacujo.net> In-Reply-To: <87y4ycfjuj.fsf@elektro.pacujo.net> Content-Type: text/plain; charset=UTF-8; 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 - gator3304.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-BWhitelist: no X-Source-IP: 173.12.184.233 X-Exim-ID: 1WiXRg-0003tQ-3q X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([173.12.184.233]) [173.12.184.233]:60020 X-Source-Auth: ethan+stoneleaf.us X-Email-Count: 1 X-Source-Cap: dG9idWs7dG9idWs7Z2F0b3IzMzA0Lmhvc3RnYXRvci5jb20= 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: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1399591894 news.xs4all.nl 2831 [2001:888:2000:d::a6]:47783 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71135 On 05/08/2014 07:03 AM, Marko Rauhamaa wrote: > Ethan Furman : >> On 05/08/2014 05:41 AM, Roy Smith wrote: >>> >>> For those people, talking about variables as a container to hold a >>> value is the right level of abstraction. >> >> Teaching someone that Python variables are containers is a massive fail. > > But that's what they are. No, it's not. > We are really debating on the suitability of a metaphor. Exactly. And the "a variable is a box that holds the value" is a great metaphor for languages that assign a name to a fixed location -- languages such as Pascal, Basic, FoxPro, and C. In these languages when you say `a = b` you now have *two* copies of the data (at least for the most part); in Python (and similar languages) you have two *names* for one copy of the data. > Or maybe we can think of Python's data model as a city with structures > of different sizes and shapes. A variable is a container that holds the > address of a structure... If that helps as a stepping stone to a true model, fine; but if that's the final destination of your understanding then you don't truly understand Python's data model. -- ~Ethan~