In choosing a way to represent a value of "no information" for a float, would it be better to use NaN or None?  None has the advantage of standard behavior across platforms, but NaN seems to propagate more easily – at least on Windows.

For example,

 

NaN+1 = NaN

but

None+1

raises an exception.

 

Thanks in advance for any advice.

 

 

Jon K Peck (Kim)

[EMAIL PROTECTED]

312-651-3435

233 S Wacker Dr

Chicago, IL 60606

 

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to