Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'cpython': 0.05; 'encoded': 0.07; 'memory.': 0.07; 'string': 0.09; 'advice.': 0.09; 'encode': 0.09; 'linear': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'strings.': 0.09; 'subject: [': 0.09; 'python': 0.11; 'jan': 0.12; 'mostly': 0.14; 'biological': 0.16; 'carefully.': 0.16; 'encodings': 0.16; 'exactly?': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'string)': 0.16; 'subject:versus': 0.16; 'too?': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'code,': 0.22; 'memory': 0.22; 'header:User-Agent:1': 0.23; 'byte': 0.24; 'integer': 0.24; 'interpret': 0.24; 'unicode': 0.24; 'mon,': 0.24; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'characters': 0.30; 'locations': 0.30; '>>>>': 0.31; 'there': 0.35; 'sequence': 0.36; 'being': 0.38; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'use.': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'read': 0.60; 'most': 0.60; 'lost': 0.61; 'no.': 0.61; 'received:173': 0.61; 'map': 0.64; 'different': 0.65; 'virus': 0.65; 'series': 0.66; 'study': 0.69; 'unusual': 0.74; 'received:fios.verizon.net': 0.84; 'subject:gets': 0.84; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Variables versus name bindings [Re: A certainl part of an if() structure never gets executed.] Date: Mon, 17 Jun 2013 18:16:12 -0400 References: <2bc90d3b-09c2-4315-9357-ff7f039465e0@googlegroups.com> <51bb454c$0$29997$c3e8da3$5496439d@news.astraweb.com> <51beb20c$0$29872$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Gmane-NNTP-Posting-Host: pool-173-75-251-66.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 In-Reply-To: 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: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371507400 news.xs4all.nl 15898 [2001:888:2000:d::a6]:55174 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48567 On 6/17/2013 1:17 PM, =CE=9D=CE=AF=CE=BA=CE=BF=CF=82 wrote: >> On Mon, Jun 17, 2013 at 8:55 AM, Simpleton wrot= e: >>> On 17/6/2013 5:22 =CE=BC=CE=BC, Terry Reedy wrote: >>>> When you interpret Python code, do you put data in locations with >>>> integer addresses? >>> I lost you here. Memory in biological brains is not a linear series of bits, or=20 characters. How we do associate things is still mostly a puzzle. Read about holographic memory. > The way some info(i.e. a Unicode string) is saved into the hdd , is the= > same way its being saved into the memory too? Same way exactly? No. A unicode string is a sequence of abstract characters or codepoints. = They must be encoded somehow to map them to linear byte memory. There=20 are still (too) many encodings in use. Most cannot encode *all* unicode=20 characters. CPython is unusual in using one of three different encodings for=20 internal unicode strings. > While you said to me to forget about memory locations, This is excellent advice. One of the *features* of Python is that one=20 *can* forget about addresses. One of the *problems* of C is that many=20 people *do* forget about memory locations, while virus writers study=20 them carefully. --=20 Terry Jan Reedy