Re: [Python-Dev] Equality testing

2011-05-18 Thread Ethan Furman
Terry Reedy wrote: On 5/18/2011 2:51 PM, Ethan Furman wrote: In Python 3 inequality comparisons became forbidden. --> 123 < [1, 2, 3] Traceback (most recent call last): File "", line 1, in TypeError: unorderable types: int() < list() However, equality comparisons are still allowed --> 123 ==

Re: [Python-Dev] Equality testing

2011-05-18 Thread Terry Reedy
On 5/18/2011 2:51 PM, Ethan Furman wrote: In Python 3 inequality comparisons became forbidden. --> 123 < [1, 2, 3] Traceback (most recent call last): File "", line 1, in TypeError: unorderable types: int() < list() However, equality comparisons are still allowed --> 123 == [1, 2, 3] False Bu

Re: [Python-Dev] Equality testing

2011-05-18 Thread Benjamin Peterson
2011/5/18 Ethan Furman : > In Python 3 inequality comparisons became forbidden. > > --> 123 < [1, 2, 3] > Traceback (most recent call last): >  File "", line 1, in > TypeError: unorderable types: int() < list() > > However, equality comparisons are still allowed > > --> 123 == [1, 2, 3] > False >

[Python-Dev] Equality testing

2011-05-18 Thread Ethan Furman
In Python 3 inequality comparisons became forbidden. --> 123 < [1, 2, 3] Traceback (most recent call last): File "", line 1, in TypeError: unorderable types: int() < list() However, equality comparisons are still allowed --> 123 == [1, 2, 3] False But you can't mix them (inequality wins) -