Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45273

Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ]

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!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.014
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'win32': 0.03; 'subject:bug': 0.07; 'though:': 0.07; 'lawrence': 0.09; 'python': 0.11; '__future__': 0.16; 'insisted': 0.16; 'python3.': 0.16; 'silly': 0.16; 'subject:python3': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'import': 0.22; 'mon,': 0.24; 'header:In-Reply-To:1': 0.27; 'andrew': 0.30; 'message-id:@mail.gmail.com': 0.30; 'skip:( 20': 0.30; '13,': 0.31; '>>>>': 0.31; "i'd": 0.34; 'but': 0.35; 'received:google.com': 0.35; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'even': 0.60; 'more': 0.64; 'nobody': 0.68; '3.3.1': 0.84; '2013,': 0.91; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=nVZROOV4D6N9f70GdKL48lirjlQA/eJicEt1p3TinXM=; b=FR426va0ZgRRXSREN8bXsLLinJicdwvyQNlQqgVRROjeGX+OgQQOo0sS3ygSwj+l5V CaMOdMC4Rat9V5CZDwY+jq/pOskAwHgsTzLvw9LQlLfIDvG3EOjhs7TTH0lp7CYPo9SO erwzpivYBDiJpSA2oFFyjpItbrYX4p6ut9g5tsp1uyb6JwrFLnOQijTtIfJ1erZJcuI8 hAY+G4+dlws0NDKGxgJCL1On3KaKaVfOxaL+4YJ2yPk5wzhjZ3gwIfTPPyn5R6TeNI55 6x0D0CksCvDPw8Wp2WLGmCs0AioBkpXaK5EpZ7qouxeI3mzbOVKs11klO3CZCJ9Uwb1+ AMFA==
X-Received by 10.68.103.194 with SMTP id fy2mr16957550pbb.158.1368488001046; Mon, 13 May 2013 16:33:21 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <519176EA.7080502@gmail.com>
References <mailman.1603.1368401007.3114.python-list@python.org> <HP2kt.66723$Tl3.12499@fx29.fr7> <CAA=1kxSJXn1_Y=oy_oxvL+mUtsZvS+FGoy-vZ39OWpbwDF07dQ@mail.gmail.com> <51912C27.3020809@nedbatchelder.com> <mailman.1641.1368470096.3114.python-list@python.org> <VLckt.68242$kO.37986@fx14.fr7> <kmrqsa$uf3$1@ger.gmane.org> <519176EA.7080502@gmail.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Mon, 13 May 2013 17:32:40 -0600
Subject Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ]
To Python <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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1651.1368488004.3114.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1368488004 news.xs4all.nl 15956 [2001:888:2000:d::a6]:41092
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:45273

Show key headers only | View raw


On Mon, May 13, 2013 at 5:27 PM, Andrew Berg <bahamutzero8825@gmail.com> wrote:
> On 2013.05.13 17:53, Mark Lawrence wrote:
>> I much prefer the alternative <> for != but some silly people insisted
>> that this be removed from Python3.
> It's not removed from Python 3, though:
>
> Python 3.3.1 (v3.3.1:d9893d13c628, Apr  6 2013, 20:30:21) [MSC v.1600 64 bit (AMD64)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
>>>> from __future__ import barry_as_FLUFL
>>>> 3 <> 2
> True

I'd like to see ≠ added as a synonym for !=, even if nobody uses it.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Differences of "!=" operator behavior in python3 and python2 [ bug? ] "Mr. Joe" <titanix88@gmail.com> - 2013-05-13 05:23 +0600
  Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ] Alister <alister.ware@ntlworld.com> - 2013-05-13 09:59 +0000
    Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ] Fábio Santos <fabiosantosart@gmail.com> - 2013-05-13 18:26 +0100
    Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ] Ned Batchelder <ned@nedbatchelder.com> - 2013-05-13 14:08 -0400
    Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ] Chris Angelico <rosuav@gmail.com> - 2013-05-14 04:15 +1000
    Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ] Fábio Santos <fabiosantosart@gmail.com> - 2013-05-13 19:28 +0100
      Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ] Alister <alister.ware@ntlworld.com> - 2013-05-13 21:17 +0000
        Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ] Fábio Santos <fabiosantosart@gmail.com> - 2013-05-13 22:48 +0100
        Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ] Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-05-13 23:53 +0100
        Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ] Dave Angel <davea@davea.name> - 2013-05-13 19:22 -0400
          Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-05-14 05:09 +0000
            Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ] Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-05-14 19:01 -0400
              Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-05-15 00:15 +0000
                Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ] Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-05-14 22:20 -0400
        Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ] Andrew Berg <bahamutzero8825@gmail.com> - 2013-05-13 18:27 -0500
        Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ] Ian Kelly <ian.g.kelly@gmail.com> - 2013-05-13 17:32 -0600
        Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-05-14 05:21 +0000
          Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ] Alister <alister.ware@ntlworld.com> - 2013-05-15 14:41 +0000
        Re: Differences of "!=" operator behavior in python3 and python2 [ bug? ] Chris Angelico <rosuav@gmail.com> - 2013-05-14 17:31 +1000

csiph-web