Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: The =?utf-8?Q?=E2=80=9Cdoes?= Python have =?utf-8?Q?variables?= =?utf-8?Q?=3F=E2=80=9D?= debate Date: Wed, 07 May 2014 17:17:23 +0300 Organization: A noiseless patient Spider Lines: 18 Message-ID: <87r445hdvw.fsf@elektro.pacujo.net> References: <235C4BFA-9770-481A-9FCF-21C3F036769C@gmail.com> <5368681D.8070602@islandtraining.com> <85zjiuea37.fsf_-_@benfinney.id.au> <8738gmxgay.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx05.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="20981"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19eMQAkq74EsWum/hIOfb0T" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:IGt/XaFSAb7pk8BkqMKvDS8TOGI= sha1:cufYtG+iNVTtZKEJUqn32fMtzGw= Xref: csiph.com comp.lang.python:71022 Ethan Furman : > On 05/06/2014 11:18 PM, Marko Rauhamaa wrote: >> Actually, while Python variables are not first-class objects, one >> could see them as dictionary-key pairs. So you can even pass them by >> reference by passing the dictionary and the key. > > Well, you could pass them that way, but not necessarily change them: Weird. Some other tests of mine did work. But: Note: The contents of this dictionary should not be modified; changes may not affect the values of local and free variables used by the interpreter. [] Marko