[Python-Dev] Std tests failing, Windows: test_builtin test_charmapcodec test_pow

Tim Peters tim.one@home.com
Mon, 8 Jan 2001 02:29:39 -0500


[Neil Schemenauer]
> Under Linux with the buggy float_pow:
>
>     >>> pow(10.0, 0, 10)
>     nan
>     >>> pow(10.0, 0, 10) == 1
>     1
>     >>> pow(10.0, 0, 10) == 0
>     1
>
> 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