[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