Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!aioe.org!.POSTED!not-for-mail From: Mark H Harris Newsgroups: comp.lang.python Subject: Re: The =?UTF-8?B?4oCcZG9lcyBQeXRob24gaGF2ZSB2YXJpYWJsZXM/4oCdIGQ=?= =?UTF-8?B?ZWJhdGU=?= Date: Wed, 07 May 2014 14:31:13 -0500 Organization: Aioe.org NNTP Server Lines: 32 Message-ID: References: <235C4BFA-9770-481A-9FCF-21C3F036769C@gmail.com> <5368681D.8070602@islandtraining.com> <85zjiuea37.fsf_-_@benfinney.id.au> <8738gmxgay.fsf@elektro.pacujo.net> NNTP-Posting-Host: eSF12mcVRIwL+eMIMJ03mA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.python:71048 On 5/7/14 10:48 AM, Jerry Hill wrote: > I think it's rather silly for someone to insist that python doesn't have > variables. On the other hand, I think it can be useful to point out > that python variable aren't like C variables, and that thinking of > python variables as having two parts -- names and values -- really can > help people who are struggling to learn the language. I know it > certainly helped me. > But here is the rub: BASIC also has -- names and values --; although they are in a variable table, and they refer to memory not objects. C is the same, basically. ehem. ... a name bound to an address that references a chunk of memory (by type) of a certain length. ... and we could go on. But, Python's names bound to objects not only doesn't behave like the 'variables' mentioned above, they provide for serious side-effects for the programmer if the coder does not think of them properly as names bound to objects. And that means surprises. So, when anyone points out that Python does not have variables, but rather Python has names bound to objects... they are being most helpful. As I pointed out earlier, I think the better approach would be to find positive language for helping new folks understand Python's beautiful heart, than the relatively negative language of stating Python has no variables.