Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed4a.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'value,': 0.04; 'subject:Python': 0.06; '*not*': 0.07; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:into': 0.09; 'worse': 0.09; 'wrote': 0.14; 'language.': 0.14; 'distinct': 0.16; 'elsewhere.': 0.16; 'expert,': 0.16; 'finney': 0.16; 'other,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:variable': 0.16; 'language': 0.16; 'wrote:': 0.18; 'pointed': 0.19; 'header:User- Agent:1': 0.23; 'example.': 0.24; 'unicode': 0.24; '---': 0.24; 'compare': 0.26; 'defined': 0.27; 'values': 0.27; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'originally': 0.30; 'equal': 0.35; 'objects': 0.35; 'subject:?': 0.36; 'so,': 0.37; 'being': 0.38; 'ben': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'how': 0.40; 'subject:Can': 0.60; 'free': 0.61; 'viruses': 0.61; 'course': 0.61; 'back': 0.62; 'times': 0.62; 'protection': 0.63; 'our': 0.64; 'more': 0.64; '>from': 0.68; 'advantages': 0.68; 'antivirus': 0.68; 'other.': 0.75; 'haunt': 0.84; 'phoenix,': 0.84; 'us?': 0.84; 'received:89': 0.85 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Can global variable be passed into Python function? Date: Sat, 01 Mar 2014 01:19:02 +0000 References: <27ac2248-0ca3-4ba6-9d25-eaad324bc5e9@googlegroups.com> <5f4f5a5f-327a-4616-8235-17ee9e74c488@googlegroups.com> <530fef58$0$11113$c3e8da3@news.astraweb.com> <871tynznpd.fsf@elektro.pacujo.net> <53104798$0$11113$c3e8da3@news.astraweb.com> <87ha7jy2qs.fsf@elektro.pacujo.net> <87k3ceeq0m.fsf@elektro.pacujo.net> <87zjlad8q4.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: host-89-240-161-236.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: <87zjlad8q4.fsf@elektro.pacujo.net> X-Antivirus: avast! (VPS 140228-3, 28/02/2014), Outbound message X-Antivirus-Status: Clean 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: 38 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1393636807 news.xs4all.nl 2838 [2001:888:2000:d::a6]:39635 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:67274 On 01/03/2014 01:10, Marko Rauhamaa wrote: > Ben Finney : > >> >From each other, of course they're distinct, because they are unequal. >> >> They are *not* necessarily distinct from other strings with equal >> value, defined elsewhere. That's what has been pointed out to you many >> times. > > That point is completely irrelevant. The state objects only need to be > distinct from each other. How do I know? I originally wrote the example. > >> So, either you care about these values being distinct from all others >> because you want to compare them with ‘is’ (and so strings are a poor >> choice); > > Strings are as good objects for the purpose as any and have some nice > advantages during troubleshooting and logging. > > > Marko > How many more times do you have to be shot down before you give up? Or do you intend coming back like the Phoenix, or worse still like our resident unicode expert, to haunt us? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com