On 25Oct2012 22:04, Terry Reedy <[email protected]> wrote: | Containment of nan in collection is tested by is, not ==. | >>> nan = float('nan') | >>> nan2 = float('nan') | >>> nan2 is nan | False
This argues otherwise, and for use of math.isnan() instead. I expect you were making the point that another NaN is distinct, but it didn't seem clear to me. Cheers, -- Cameron Simpson <[email protected]> In article [email protected], [email protected] (Mcrider) writes: >Could one of you physicist-type cyber-riders give a lucid description/ >explanation of what some folks loosely refer to as a 'tank-slapper'? An undamped oscillation of camber thrust, with positive feedback, applied to the front contact patch? :^) - Ed Green, [email protected], DoD#0111 -- http://mail.python.org/mailman/listinfo/python-list
