Turn off ZeroDivisionError?
Neal Becker
ndbecker2 at gmail.com
Mon Feb 11 21:15:21 EST 2008
Mark Dickinson wrote:
> On Feb 10, 3:10 pm, bearophileH... at lycos.com wrote:
>> What Python run on a CPU that doesn't handle the nan correctly?
>
> How about platforms that don't even have nans? I don't think either
> IBM's hexadecimal floating-point format, or the VAX floating-point
> formats
> support NaNs. Python doesn't assume IEEE 754 hardware; though much
> of its code
> could be a lot simpler if it did :-).
> rywhere ;-).
>
> Mark
So just use it where it's available, and emulate where it's not.
More information about the Python-list
mailing list