[Python-Dev] Not-a-Number

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Apr 30 01:50:47 CEST 2011


Steven D'Aprano wrote:

> If I do x = 0.0/0 I get an exception instead of a NAN.

But the exception you get is ZeroDivisionError, so I think
Python is catching this before you get to the stage of
producing a NaN.

-- 
Greg


More information about the Python-Dev mailing list