Skip to content
loading...

re: TIL NaN and Inf exist in Python too... VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Theres -Infinity too.
 

And math.isnan, and math.nan, which is not float('nan'), apparently.

I'm kind of unsatisfied now that 1/0 errors in Python. In both Haskell and JS it's Infinity, which I find is the desired behavior more often.

 
code of conduct - report abuse