Stefan Krah <stefan-usenet <at> bytereef.org> writes: > > I see the point, but Decimal("NaN") does not hash:
Ok but witness again: >>> L = [1, 2, Decimal("NaN"), 3] >>> 3 in L True >>> class H(object): ... def __eq__(self, other): raise ValueError ... >>> L = [1, 2, H(), 3] >>> 3 in L Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<stdin>", line 2, in __eq__ ValueError (NB: interestingly, float("nan") does hash) Regards Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com