A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-January/011408.html below:

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

[Python-Dev] Std tests failing, Windows: test_builtin test_charmapcodec test_powTim 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




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4