Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Differences of "!=" operator behavior in python3 and python2 [bug? ]

Reply
Thread Tools

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

 
 
Cameron Simpson
Guest
Posts: n/a
 
      05-14-2013
On 13May2013 21:41, Dave Angel <(E-Mail Removed)> wrote:
| On 05/13/2013 07:30 PM, Cameron Simpson wrote:
| >On 13May2013 19:22, Dave Angel <(E-Mail Removed)> 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 <(E-Mail Removed)>

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.
- http://www.velocityreviews.com/forums/(E-Mail Removed) (rob derrick)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Differences of "!=" operator behavior in python3 and python2 [ bug? ] Mr. Joe Python 15 05-15-2013 02:20 AM
Re: Differences of "!=" operator behavior in python3 and python2 [bug? ] Cameron Simpson Python 0 05-13-2013 11:30 PM
Re: Differences of "!=" operator behavior in python3 and python2 [bug? ] Ian Kelly Python 1 05-12-2013 11:52 PM
Re: Differences of "!=" operator behavior in python3 and python2[ bug? ] Ned Batchelder Python 0 05-12-2013 11:35 PM
Re: is the same betweent python3 and python3.2? Andrew Berg Python 0 06-16-2012 11:11 AM



Advertisments