En Tue, 15 May 2007 09:28:52 -0300, Diez B. Roggisch <[EMAIL PROTECTED]>  
escribió:

>> with the same hash value.
>> That is, you should define __hash__ and one of (__cmp__ or __eq__).
>> __neq__ (inequality) isn't required nor used by dict/set implementation.
>> (Anyway, Python will transform a!=b into not(a==b), if __neq__ isn't
>> defined). Neither <, <=, >, >= are used.
>
> No, it won't:
>
> http://docs.python.org/ref/customization.html#l2h-190

Ouch, sorry, my bad!

-- 
Gabriel Genellina

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to