ops im sorry..i didnt noticed that reply just replyed to you..i thought it would go to the list. <br><br>Thanks for the help<br><br>best regards<br><br><div class="gmail_quote">On Sat, May 17, 2008 at 8:36 PM, Kent Johnson &lt;<a href="mailto:kent37@tds.net">kent37@tds.net</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Sat, May 17, 2008 at 7:04 PM, Tiago Katcipis &lt;<a href="mailto:katcipis@inf.ufsc.br">katcipis@inf.ufsc.br</a>&gt; wrote:<br>

&gt; ive been reading and really seens to be better to use cmp... i will not have<br>
&gt; to write a method to every single operator. But when python compare<br>
&gt; objects...like in Sets or Lists...to check for membership etc, it uses cmp<br>
&gt; ou eq?<br>
<br>
</div>It uses __eq__() if it is defined, otherwise __cmp__()<br>
<a href="http://docs.python.org/ref/customization.html" target="_blank">http://docs.python.org/ref/customization.html</a><br>
<font color="#888888"><br>
Kent<br>
</font><br>
PS Please use Reply All to reply to the list<br>
</blockquote></div><br>