Re: NaN Vs None

2005-09-23 Thread François Pinard
[Peck, Jon] > 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. [...] What I do for these things is crea

NaN Vs None

2005-09-23 Thread Peck, Jon
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 e