<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jan 12, 2015 at 3:39 PM, Devin Jeanpierre <span dir="ltr"><<a href="mailto:jeanpierreda@gmail.com" target="_blank">jeanpierreda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">>> So, why is it "math.isnan(x)" and not "x.isnan()"?<br>
><br>
> I'm a little curious about this myself, since float.is_nan(),<br>
> float.is_inf(), and float.is_finite() are all implemented, but #if 0'd<br>
> out.<br>
<br>
</span>I'm not Christian, but adding methods to numbers can be annoying<br>
because you may also have to add it to ints, rationals, decimals, the<br>
numeric ABCs... At the very least, to ints, anyway.</blockquote><div><br></div><div>and there are any number of other things in math that _could_ be methods....</div><div><br></div><div>-Chris</div><div> </div></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R            (206) 526-6959   voice<br>7600 Sand Point Way NE   (206) 526-6329   fax<br>Seattle, WA  98115       (206) 526-6317   main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div>
</div></div>