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!newsfeed3.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'operator': 0.03; 'subject:bug': 0.07; 'lawrence': 0.09; 'cc:addr:python-list': 0.11; '>on': 0.16; '>that': 0.16; '__lt__': 0.16; 'call?': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'insisted': 0.16; 'message- id:@cskk.homeip.net': 0.16; 'ought': 0.16; 'python3.': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'silly': 0.16; 'simpson': 0.16; 'subject:python3': 0.16; 'symbols': 0.16; ':-)': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'cheers,': 0.24; 'looks': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'least': 0.26; 'header:In-Reply-To:1': 0.27; "can't": 0.35; 'point.': 0.35; 'but': 0.35; 'really': 0.36; 'received:com.au': 0.36; 'next': 0.36; 'charset:us-ascii': 0.36; "i'll": 0.36; 'should': 0.36; 'received:211': 0.38; 'pm,': 0.38; 'either': 0.39; 'how': 0.40; 'dave': 0.60; 'content- disposition:inline': 0.62; 'special': 0.74; 'coming,': 0.84; 'cream': 0.84; 'pie': 0.84; 'angel': 0.91 Date: Tue, 14 May 2013 13:20:36 +1000 From: Cameron Simpson To: Dave Angel Subject: Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5191964D.9040900@davea.name> User-Agent: Mutt/1.5.21 (2010-09-15) References: <5191964D.9040900@davea.name> X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.0 cv=e/de0tV/ c=1 sm=1 a=wom5GMh1gUkA:10 a=xu1jQgGuIs8A:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=ZtCCktOnAAAA:8 a=ckcrQAo8segA:10 a=kBl-OI3rAAAA:8 a=-J3MhAKKs-5A79nLBwQA:9 a=CjuIK1q_8ugA:10 a=ChdAjXE5lkUvdteQbhpnkQ==:117 Cc: python-list@python.org 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1368502086 news.xs4all.nl 15893 [2001:888:2000:d::a6]:38424 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45281 On 13May2013 21:41, Dave Angel wrote: | On 05/13/2013 07:30 PM, Cameron Simpson wrote: | >On 13May2013 19:22, Dave Angel wrote: | >| On 05/13/2013 06:53 PM, Mark Lawrence wrote: | >| >I much prefer the alternative <> for != but some silly people insisted | >| >that this be removed from Python3. Just how stupid can you get? | >| | >| So which special methods should the <> operator call? By rights it | >| ought to call both __gt__ and __lt__ and return True if either of | >| them is True. | > | >Surely it should require both of them to be true... | | Then it would never be true. At least not for numbers. Well that was the point. The _symbol_ looks like it should want both. Next time I'll include the smiley. Cheers, -- Cameron Simpson I really don't like :-) symbols as well. I feel that if you can't see the pie coming, you deserve whipped cream up your nose. - robd@cherry.cray.com (rob derrick)