On Thu, Jun 19, 2014 at 1:31 PM, Joel Goldstick
<[email protected]> wrote:
>
> On Jun 19, 2014 7:05 AM, "Neal Becker" <[email protected]> wrote:
>>
>> Can I change behavior of py3 to return nan for 0./0. instead of raising an
>> exception?
>
> There is no nan in python.
Wrong:
>>> float('nan')
nan
>>>
also:
https://docs.python.org/2/library/math.html#math.isnan
> Check if the float x is a NaN (not a number). For more information on NaNs,
> see the IEEE 754 standards.
--
Chris “Kwpolska” Warrick <http://kwpolska.tk>
PGP: 5EAAEA16
stop html mail | always bottom-post | only UTF-8 makes sense
--
https://mail.python.org/mailman/listinfo/python-list