Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed2a.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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.06; 'string': 0.09; 'subject:into': 0.09; 'cc:addr:python-list': 0.11; 'fine.': 0.16; 'finney': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'identifiers.': 0.16; 'objects.': 0.16; 'subject:variable': 0.16; 'thread,': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'regardless': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'getting': 0.31; 'objects': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'subject:?': 0.36; 'ben': 0.38; 'pm,': 0.38; 'subject:Can': 0.60; 'choose': 0.64; 'telling': 0.64; 'here': 0.66; 'mar': 0.68; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=n0FoTPZEomhVNFLtxsKgkdncQ9N6K4/aKN1BF41o1D0=; b=Rv2XX7FpOK2soaNOPntvUSTtCknovHtzEshW/2imzcbiQkAIamzR1rIqbDHIDw501L Hzq6Kldlpzfiy1KhJAiovTjvCA8GbzC4BuiVdLD6Q/LNMjDM2UxmPHWhcg1sDjA0F7rq vs59FxsZEhPjPMsEhdEYk7IM3TaN6JZ93yc5DKqhISA/9soybzJ/jRG0Y85ybWtWwpT5 rONXAsPH/kR611bP7bb7Wl3/ZeyMa4v8AeQRwf9fcYMq5UlXpXaortlHMCqKdXOX8GOs JVACDRJn3dxP8Uua8Bl7rWv4+l+O4pd3yknABzkFbmz0VGJ1tCtUmquQIdCaE1WEv4Ed 86Tw== MIME-Version: 1.0 X-Received: by 10.66.164.229 with SMTP id yt5mr9266313pab.67.1393675192747; Sat, 01 Mar 2014 03:59:52 -0800 (PST) In-Reply-To: <87k3ceqhti.fsf@elektro.pacujo.net> 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> <874n3irz04.fsf@elektro.pacujo.net> <87k3ceqhti.fsf@elektro.pacujo.net> Date: Sat, 1 Mar 2014 22:59:52 +1100 Subject: Re: Can global variable be passed into Python function? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1393675202 news.xs4all.nl 2914 [2001:888:2000:d::a6]:51908 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:67311 On Sat, Mar 1, 2014 at 10:28 PM, Marko Rauhamaa wrote: > Ben Finney : > >> Use =E2=80=98=3D=3D=E2=80=99, since that's all that matters for getting = a value that will >> work fine. > > You are telling me to use '=3D=3D' if I choose string objects and 'is' if= I > choose some other objects. > > I prefer a solution that works regardless of what objects I choose for > identifiers. > > There really is no taboo against string object identity if you know what > you are doing. And, as proven here in this thread, you do not know what you are doing. ChrisA