[Python-Dev] Std tests failing, Windows: test_builtin test_charmapcodec test_pow
Mon, 8 Jan 2001 02:29:39 -0500
> Under Linux with the buggy float_pow:
> >>> pow(10.0, 0, 10)
> >>> pow(10.0, 0, 10) == 1
> >>> pow(10.0, 0, 10) == 0
> Under Windows NAN obviously behaves differently.
Comparisons with NaN are a platform-dependent accident, partly because some
C compilers generate nonsense code, partly because Python isn't coded to
cater to NaN's peculiarities either. The behavior under Windows is
(accidentally) better in these cases today (NaN should never compare equal
to anything -- not even to itself -- and, curiously, MSVC's codegen mistakes
cancel out Python's mistakes in this case!).
Thank you for fixing the bug. Only test_charmapcodec is failing for me now,
and MAL knows the cause and cure.
nothing-can-stop-the-alpha-now-ly y'rs - tim