On Wed, Nov 5, 2008 at 10:03 PM, Arnaud Delobelle
<[EMAIL PROTECTED]> wrote:
> Only hashable objects can go in a set.  By default a class you define is
> not hashable (unless it descends from a hashable class).  To remedy this
> you can define a __hash__ method in your class.  IIRC the only
> requirement of a hash function is that two equal objects have the same
> hash.

Thanks, now it works.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to