>>> a = [float('nan'), 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
>>> a
[nan, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
>>> a.index(float('nan'))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: list.index(x): x not in listThat means, the function .index() cannot detect nan values. It happens on both Python 2.6 and Python 3.1 Is this a bug? Or I am not using .index() correctly? Thanks! -- http://mail.python.org/mailman/listinfo/python-list
