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

Discussion in 'Python' started by Cameron Simpson, May 14, 2013.

  1. 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.
    - (rob derrick)
    Cameron Simpson, May 14, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. xmllmx
    Replies:
    6
    Views:
    412
    xmllmx
    Feb 3, 2010
  2. Mr. Joe
    Replies:
    15
    Views:
    160
    Dennis Lee Bieber
    May 15, 2013
  3. Ned Batchelder
    Replies:
    0
    Views:
    108
    Ned Batchelder
    May 13, 2013
  4. Ian Kelly
    Replies:
    1
    Views:
    109
    Rotwang
    May 13, 2013
  5. Cameron Simpson
    Replies:
    0
    Views:
    77
    Cameron Simpson
    May 14, 2013
Loading...

Share This Page