Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed4a.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'programmer': 0.03; 'from:addr:yahoo.co.uk': 0.04; 'wednesday,': 0.07; 'desired,': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'uses.': 0.09; 'python': 0.11; 'language.': 0.14; 'boring,': 0.16; 'discrepancy': 0.16; 'frankly': 0.16; 'lisp': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'language': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'value.': 0.19; 'machine': 0.22; '>>>': 0.22; 'example': 0.22; 'header:User-Agent:1': 0.23; 'stick': 0.24; "haven't": 0.24; '---': 0.24; 'equivalent': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'away.': 0.31; 'object.': 0.31; "skip:' 40": 0.31; 'probably': 0.32; 'quite': 0.32; 'sense': 0.34; 'false': 0.36; "i'll": 0.36; 'should': 0.36; 'two': 0.37; 'being': 0.38; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'free': 0.61; 'march': 0.61; 'viruses': 0.61; "you're": 0.61; 'name': 0.63; 'protection': 0.63; 'refer': 0.63; 'our': 0.64; 'different': 0.65; 'between': 0.67; 'determine': 0.67; 'yes': 0.68; 'antivirus': 0.68; 'received:89': 0.85 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Reference Date: Wed, 05 Mar 2014 12:21:38 +0000 References: <53144e8d$0$2149$426a74cc@news.free.fr> <1d1dfa1b-b715-4d8f-9c12-f0d3dc1a22c9@googlegroups.com> <85ppm3httu.fsf@benfinney.id.au> <20140303155112.46e34ff8@bigbox.christie.dr> <87siqy7whs.fsf@elektro.pacujo.net> <53155c15$0$2923$c3e8da3$76491128@news.astraweb.com> <164d209c-ba5e-449f-bc25-c27ebfb1fc0f@googlegroups.com> <5316b0dc$0$2923$c3e8da3$76491128@news.astraweb.com> <55d6a455-1856-4fd6-ac4b-c277ff7e2bd1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-89-240-165-66.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: X-Antivirus: avast! (VPS 140304-1, 04/03/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: 57 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1394022119 news.xs4all.nl 2839 [2001:888:2000:d::a6]:42839 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:67837 On 05/03/2014 06:10, Rustom Mody wrote: > On Wednesday, March 5, 2014 11:31:04 AM UTC+5:30, alex23 wrote: >> On 5/03/2014 3:47 PM, Rustom Mody wrote: >>> That python is a hll means that machine reprs are intended to be abstracted >>> away. 'is' fails to do that -- proof of that being the discrepancy between >>> is and == > >> The "discrepancy" is because _they're fundamentally different_: > > Yeah I know :D > > >> Both have their uses. > > Yes -- see my lisp example above > >> >>> a = b = [1,2] >> >>> c = [1,2] >> >>> a is b >> True >> >>> a is c >> False >> >>> a == b >> True >> >>> a == c >> True > >> `==` is used to determine if they're equivalent in value. > > Right > >> `is` is used to determine if two names refer to the same object. > > > 'Same' is 'is' in a different guise and is what I object to. > > A python programmer who needs/wants to think of same/is in this sense > should probably be using C or assembly > > In the exceptional circumstances when 'low-level-machine-equivalence-relation' > is desired, a name carrying some of those connotations would be ok > Quite frankly I haven't got the faintest idea what you're going on about, so I'll just stick with writing plain, boring, working Python code. -- 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