NaN handling

Terry Reedy tjreedy at udel.edu
Sat May 6 18:53:54 CEST 2006


"Felipe Almeida Lessa" <felipe.lessa at gmail.com> wrote in message 
news:1146929327.30335.5.camel at kenshin.CASA...
> This works everywhere:
>
> nan = float('nan')

Not.

>>> nan = float('nan')

Traceback (most recent call last):
  File "<pyshell#4>", line 1, in -toplevel-
    nan = float('nan')
ValueError: invalid literal for float(): nan

Above is Windows, which requires something else.

tjr






More information about the Python-list mailing list