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!newsfeed4.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'operator': 0.03; 'that?': 0.05; 'true,': 0.05; 'subject:bug': 0.07; 'lawrence': 0.09; '__lt__': 0.16; 'call?': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'insisted': 0.16; 'ought': 0.16; 'python3.': 0.16; 'silly': 0.16; 'subject:python3': 0.16; ':-)': 0.16; 'wrote:': 0.18; 'all,': 0.19; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'skip:_ 10': 0.34; 'but': 0.35; 'received:google.com': 0.35; '14,': 0.36; 'should': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'how': 0.40; 'dave': 0.60; 'special': 0.74; 'ps.': 0.84; 'angel': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=z8rRJeekUKubIROLvTkFzMIz1byJD0uswm7yOndL98w=; b=tmK9mueR0LGA9+CoJNbjkBMSiJAVPTAhiwv1hiU3ghBa0xcXiTdXt1zRQUwG0jvPln KeWUDrJKOCcTnni939uJGXDL6YoO5g+iiBsj/ls7JlrHKtGYkxFMrWhnv8EAbAKX17/O d/pgwlxKtvpsfqnKxiO3TWtj2Ll2gqpHZMI+rb2nAo4iXZFNU+iXqEWK30xtQvGAkU0c S2dCX/PYydgOMuNfSoaIHjFL67tWsGrLRcrZD9fwf46eXMXrp3dsiFAgfnRNPkw5VEkP HyHie6a4qJ6gAT7ZboV11eqIqq+PJr1+rzluj1rFAZNyP4dSCURuuWBZlL4Bs3j6g5Xh TMFw== MIME-Version: 1.0 X-Received: by 10.220.67.200 with SMTP id s8mr20682826vci.66.1368516701838; Tue, 14 May 2013 00:31:41 -0700 (PDT) In-Reply-To: <519175B0.90603@davea.name> References: <51912C27.3020809@nedbatchelder.com> <519175B0.90603@davea.name> Date: Tue, 14 May 2013 17:31:41 +1000 Subject: Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ] From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1368516704 news.xs4all.nl 15934 [2001:888:2000:d::a6]:60172 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45288 On Tue, May 14, 2013 at 9:22 AM, 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. Why do you think that? After all, the != operator doesn't call __factorial__ and __assignment__ and return True if either is True, does it? ChrisA PS. :-)