python 2 and python 3 __cmp__
<p>when i use the code in python 2 it works fine while python 3 it gives me the error</p>

<pre><code> class point:

        def __init__(self,x,y):
            self.x=x
            self.y=y

        def dispc(self):
            return ('(' +str(self.x)+','+str(self.y)+')')

        def __cmp__(self,other):
            return ((self.x &gt; other.x) and (self.y &gt; other.y))
</code></pre>

<p>....................................................................</p>

<pre><code>shubham@shubham-VPCEA46FG:~/Documents/Programs$ python3 -i classes.py 
&gt;&gt;&gt; p=point(2,3)
&gt;&gt;&gt; q=point(3,4)
&gt;&gt;&gt; p&gt;q
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
TypeError: unorderable types: point() &gt; point()
&gt;&gt;&gt; 
shubham@shubham-VPCEA46FG:~/Documents/Programs$ python -i classes.py 
&gt;&gt;&gt; p=point(2,3)
&gt;&gt;&gt; q=point(3,4)
&gt;&gt;&gt; p&gt;q
False
&gt;&gt;&gt; 
</code></pre>

<p>...................................................................</p>

<p>In python 3 it gives an error on >and&lt;
while works for only== and !=
please suggest a soln. </p>
