Re: Surprise with special floating point values

2006-11-29 Thread prouleau001
On Nov 29, 1:11 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > While trying to use simplejson under Python 2.4.3 I have been > > investigating the handling of special floating point valuesnote that JSON > > doesn't support non-numeric floating point values, as can >

Re: Surprise with special floating point values

2006-11-29 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > While trying to use simplejson under Python 2.4.3 I have been > investigating the handling of special floating point values note that JSON doesn't support non-numeric floating point values, as can be seen by the "number" syntax description on this page: http://w

Re: Surprise with special floating point values

2006-11-29 Thread prouleau001
On Nov 29, 12:53 pm, [EMAIL PROTECTED] wrote: > Hi all, > > While trying to use simplejson under Python 2.4.3 I have been > investigating the handling of special floating point values and found > that both Python 2.4 and 2.5 return False when comparing a NaN with > itself. Although surprising,

Surprise with special floating point values

2006-11-29 Thread prouleau001
Hi all, While trying to use simplejson under Python 2.4.3 I have been investigating the handling of special floating point values and found that both Python 2.4 and 2.5 return False when comparing a NaN with itself. Although surprising, I imagine it could also be correct since NaN is not a numb