[Freeipa-devel] DN patch and documentation

John Dennis jdennis at redhat.com
Fri Jul 27 20:04:42 UTC 2012


On 07/27/2012 09:14 AM, Petr Viktorin wrote:
> Unfortunately, that's not quite true yet.
>
> If an object implements both __hash__ and __cmp__/__eq__, it must ensure
> that two equal objects will have the same hash value -- see
> http://docs.python.org/reference/datamodel.html#object.__hash__
>
> This is not the case: DN(dn) == EditableDN(dn), but hash(DN(dn)) !=
> hash(EditableDN(dn)).
>
> Please flag the mutable classes as unhashable by setting __hash__ = None.

Fixed.

-- 
John Dennis <jdennis at redhat.com>

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/




More information about the Freeipa-devel mailing list