Steven D'Aprano wrote:
I disagree -- if I ask:3.0 in [1.0, 2.0, float('nan'), 3.0] I should get True, not an exception.
Yes, I don't think anyone would disagree that NaN should compare unequal to anything that isn't a NaN. Problems only arise when comparing two NaNs. -- Greg _______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
