[Python-Dev] Not-a-Number (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 29 03🔞55 CEST 2011
- Previous message: [Python-Dev] Not-a-Number
- Next message: [Python-Dev] Not-a-Number
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Taking a step back from all this, why does Python allow NaNs to arise from computations at all?
+Inf and -Inf are arguably useful elements of the algebra, yet Python insists on raising an exception for 1.0./0.0 instead of returning an infinity.
Why do this but not raise an exception for any operation that produces a NaN?
-- Greg
- Previous message: [Python-Dev] Not-a-Number
- Next message: [Python-Dev] Not-a-Number
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]