numpy: handling float('NaN') different in XP vs. Linux

John [H2O] washakie at
Mon Jun 16 20:14:48 CEST 2008

Dan Bishop wrote:
> Python just uses the atof() function from the underlying C library.
> Some of them handle NaN's, and some of them don't.

As a work around, how would I write this in list comprehension form:

         for i in range(len(v[1])):
               newlist.append(-999.99) # or just nan possibly?

View this message in context:
Sent from the Python - python-list mailing list archive at

More information about the Python-list mailing list